diff --git a/poetry.lock b/poetry.lock index 5ee159c..a1e26a2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "annotated-types" @@ -1731,4 +1731,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = ">=3.9" -content-hash = "675dd9fede56546409cd4310c1530d11b2e2f1ae6dbd23adecf4e952074fbc06" +content-hash = "fb42c1a849425525f52f2685d0deeb60ffdc069f32517d05c8a58df210b2434d" diff --git a/pyproject.toml b/pyproject.toml index bd3fa6d..c91bbe8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,31 +23,31 @@ classifiers = [ [tool.poetry.dependencies] python = ">=3.9" httpx = ">=0.27.0" -pydantic = ">=2.6.4" +pydantic = ">=2.7.4" beautifulsoup4 = ">=4.12.3" -lxml = ">=5.1.0" -hishel = ">=0.0.25" -torf = ">=4.2.6" -typing-extensions = ">=4.10.0" -platformdirs = ">=4.2.0" -xmltodict = "^0.13.0" +lxml = ">=5.2.2" +hishel = ">=0.0.29" +torf = ">=4.2.7" +typing-extensions = ">=4.12.2" +platformdirs = ">=4.2.2" +xmltodict = ">=0.13.0" strenum = { version = ">=0.4.15", python = "<3.11" } -importlib-metadata = { version = ">=7.1.0", python = "<3.10" } -eval-type-backport = { version = ">=0.1.3", python = "<3.10" } +importlib-metadata = { version = ">=8.0.0", python = "<3.10" } +eval-type-backport = { version = ">=0.2.0", python = "<3.10" } [tool.poetry.group.dev.dependencies] ruff = "^0.5.0" -mypy = "^1.9.0" -pytest = "^8.1.1" +mypy = "^1.10.1" +pytest = "^8.2.2" pytest-asyncio = "^0.23.5.post1" -pre-commit = "^3.7.0" +pre-commit = "^3.7.1" coverage = "^7.5.4" respx = "^0.21.1" -types-beautifulsoup4 = "^4.12.0.20240229" +types-beautifulsoup4 = "^4.12.0.20240511" types-xmltodict = "^0.13.0.3" [tool.poetry.group.docs.dependencies] -mkdocs-material = "^9.5.15" +mkdocs-material = "^9.5.27" mkdocstrings = {extras = ["python"], version = "^0.24.0"} mkdocs-autorefs = "^1.0.1" diff --git a/tests/test_models.py b/tests/test_models.py index fb55a9e..644b712 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -94,7 +94,6 @@ def test_nyaa_torrent_page() -> None: assert page_c != "other" assert set((page_a, page_b, page_c)) == {page_a, page_c} == {page_b, page_c} - assert ( page_a.model_dump_json() == """{"id":123456,"url":"https://nyaa.si/view/123456","title":"title","category":"Anime - English-translated","date":"2024-06-30T00:00:00","submitter":{"name":"John","url":"https://nyaa.si/user/john","is_trusted":true,"is_banned":false},"information":null,"seeders":20,"leechers":30,"completed":100,"is_trusted":false,"is_remake":false,"description":null,"torrent_file":"https://nyaa.si/download/123456.torrent","magnet":"magnet:?xt=urn:btih:...&dn=...","torrent":{"name":"ubuntu-22.04.4-live-server-amd64.iso","trackers":[["https://torrent.ubuntu.com/announce"],["https://ipv6.torrent.ubuntu.com/announce"]],"comment":"Ubuntu CD releases.ubuntu.com","creation_date":null,"created_by":"mktorrent 1.1","piece_size":262144}}"""