Skip to content

Commit

Permalink
Improve test layout
Browse files Browse the repository at this point in the history
Use importlib mode of pytest.
Remove __init__.py in tests.
  • Loading branch information
imagejan committed Sep 2, 2024
1 parent e5d8227 commit be61cbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@ exclude_lines = [

[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
Empty file removed tests/__init__.py
Empty file.

0 comments on commit be61cbf

Please sign in to comment.