Skip to content

Commit

Permalink
Better treatment of arguments/options in line with what pytest expects
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Feb 6, 2024
1 parent d322754 commit 8495406
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 68 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ path = "README.rst"
minversion = "6.0"
norecursedirs = [
".*", "build", "dist", "CVS", "_darcs", "{arch}", "*.egg",
"rapidjson", "tests/helpers", "scripts"
"rapidjson", "tests/helpers", "scripts", "python-rapidjson"
]
python_files = [
"test_*.py",
Expand Down
8 changes: 8 additions & 0 deletions tests/conftests.py
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import os
pytest_plugins = 'pytest-yggdrasil'
_test_directory = os.path.abspath(os.path.dirname(__file__))


def pytest_addoption(parser):
parser.addoption("--yggdrasil-tests-rootdir", type=str,
help="Directory containing the yggdrasil tests",
default=_test_directory)
Loading

0 comments on commit 8495406

Please sign in to comment.