Skip to content

Commit

Permalink
test: use archon, test that questionpy doesnt depend on sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MHajoha committed Jan 7, 2025
1 parent 32bad0e commit 57ad147
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
19 changes: 18 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pytest-md = "^0.2.0"
coverage = { extras = ["toml"], version = "^7.4.4" }
selenium = "^4.19.0"
lxml-stubs = "^0.5.1"
pytest-archon = "^0.0.6"

[tool.poetry.group.linter]
dependencies = { ruff = "^0.6.3" }
Expand Down
10 changes: 10 additions & 0 deletions tests/test_arch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pytest_archon import archrule


def test_questionpy_should_not_import_sdk() -> None:
(
archrule("questionpy_should_not_import_sdk", comment="The questionpy package must work without the SDK.")
.match("questionpy*")
.should_not_import("questionpy_sdk*")
.check("questionpy")
)

0 comments on commit 57ad147

Please sign in to comment.