diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffc6913..d797b77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,4 +30,4 @@ jobs: - name: Run tests run: | - python -m pytest -v tests/tests.py + python -m pytest -v tests/ diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index c0acfb2..3699752 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -32,7 +32,7 @@ jobs: - name: Run tests and collect coverage run: | pip install pytest-cov - python -m pytest --cov=./ --cov-report=xml --cov-report=lcov tests/tests.py + python -m pytest --cov=./ --cov-report=xml --cov-report=lcov tests/test_rutificador.py - name: Upload coverage to Coveralls uses: coverallsapp/github-action@v2 diff --git a/pyproject.toml b/pyproject.toml index 8766354..d340f63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ pytest = "^7.2.1" [tool.pytest.ini_options] testpaths = ["tests"] +pythonpath = ["rutificador"] addopts = "--import-mode=importlib" [build-system] diff --git a/tests/tests.py b/tests/test_rutificador.py similarity index 100% rename from tests/tests.py rename to tests/test_rutificador.py