Skip to content

Commit d342754

Browse files
committed
fix(tests): rename SimpleRepositoryPage to HTMLPage
* removed in python-poetry/poetry#9166
1 parent b613914 commit d342754

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/repositories/test_legacy_proxy_repository.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import urllib.parse as urlparse
55
from pathlib import Path
66

7-
from poetry.repositories.link_sources.html import SimpleRepositoryPage
7+
from poetry.repositories.link_sources.html import HTMLPage
88

99
from poetry_plugin_pypi_proxy.plugin import LegacyProxyRepository
1010
from poetry_plugin_pypi_proxy.utils import Version
@@ -16,13 +16,13 @@ class MockRepository(LegacyProxyRepository):
1616
def __init__(self) -> None:
1717
super().__init__("proxy", url="http://legacy.foo.bar", disable_cache=True)
1818

19-
def _get_page(self, name: str) -> SimpleRepositoryPage | None:
19+
def _get_page(self, name: str) -> HTMLPage | None:
2020
fixture = self.FIXTURES / (name + ".html")
2121
if not fixture.exists():
2222
return None
2323

2424
with fixture.open(encoding="utf-8") as f:
25-
return SimpleRepositoryPage(self._url + "/" + name + ".html", f.read())
25+
return HTMLPage(self._url + "/" + name + ".html", f.read())
2626

2727
def _download(self, url: str, dest: Path) -> None:
2828
filename = urlparse.urlparse(url).path.rsplit("/")[-1]

0 commit comments

Comments
 (0)