Skip to content

Commit

Permalink
Move the tests out of the main python package
Browse files Browse the repository at this point in the history
Fixes: fedora-infra#734

Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jan 17, 2025
1 parent 8bf8e9b commit 6390aa5
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions news/734.dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move the tests out of the main python package
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ lines-after-imports = 2
order-by-type = false

[tool.ruff.lint.per-file-ignores]
"fasjson/tests/*" = ["S101", "E501"]
"tests/*" = ["S101", "E501"]
"news/get-authors.py" = ["S602", "S603", "S607"]


Expand All @@ -80,7 +80,7 @@ exclude_lines = [
]
omit = [
"fasjson/__init__.py",
"fasjson/tests/*",
"tests/*",
]


Expand Down Expand Up @@ -145,7 +145,7 @@ issue_format = "{issue}"

[tool.pytest.ini_options]
testpaths = [
"fasjson/tests/unit",
"tests/unit",
]

[build-system]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from fasjson.lib.ldap.client import LDAPResult
from fasjson.lib.ldap.models import UserModel
from fasjson.tests.unit.utils import get_user_api_output, get_user_ldap_data

from .utils import get_user_api_output, get_user_ldap_data


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import pytest

from fasjson.lib.ldap.client import LDAPResult
from fasjson.tests.unit.utils import get_user_api_output, get_user_ldap_data

from .utils import get_user_api_output, get_user_ldap_data


@pytest.fixture
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowlist_externals =
commands_pre =
poetry install
commands =
unit: poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing fasjson/tests/unit {posargs}
unit: poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing tests/unit {posargs}

[testenv:docs]
changedir = docs
Expand Down

0 comments on commit 6390aa5

Please sign in to comment.