mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-28 22:59:03 -06:00
Chore: Enables pylance pytest integration, swaps around some test markers (#11930)
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
"**/coverage.json": true
|
"**/coverage.json": true
|
||||||
},
|
},
|
||||||
"python.defaultInterpreterPath": ".venv/bin/python3",
|
"python.defaultInterpreterPath": ".venv/bin/python3",
|
||||||
|
"python.analysis.inlayHints.pytestParameters": true,
|
||||||
|
"python.testing.pytestEnabled": true,
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": ["ms-python.python", "charliermarsh.ruff", "editorconfig.editorconfig"],
|
"recommendations": ["ms-python.python", "charliermarsh.ruff", "editorconfig.editorconfig"],
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ from paperless_tika.parsers import TikaDocumentParser
|
|||||||
reason="No Gotenberg/Tika servers to test with",
|
reason="No Gotenberg/Tika servers to test with",
|
||||||
)
|
)
|
||||||
@pytest.mark.django_db()
|
@pytest.mark.django_db()
|
||||||
|
@pytest.mark.live
|
||||||
|
@pytest.mark.gotenberg
|
||||||
|
@pytest.mark.tika
|
||||||
class TestTikaParserAgainstServer:
|
class TestTikaParserAgainstServer:
|
||||||
"""
|
"""
|
||||||
This test case tests the Tika parsing against a live tika server,
|
This test case tests the Tika parsing against a live tika server,
|
||||||
|
|||||||
@@ -128,6 +128,8 @@ class TestTikaParser:
|
|||||||
|
|
||||||
request = httpx_mock.get_request()
|
request = httpx_mock.get_request()
|
||||||
|
|
||||||
|
assert request is not None
|
||||||
|
|
||||||
expected_field_name = "pdfa"
|
expected_field_name = "pdfa"
|
||||||
|
|
||||||
content_type = request.headers["Content-Type"]
|
content_type = request.headers["Content-Type"]
|
||||||
|
|||||||
Reference in New Issue
Block a user