diff --git a/docs/development/best-practice/continuous_integration.md b/docs/development/best-practice/continuous_integration.md index 3094e51..7d35f94 100644 --- a/docs/development/best-practice/continuous_integration.md +++ b/docs/development/best-practice/continuous_integration.md @@ -51,7 +51,7 @@ Install the required package in a python environment.
## Adding and Managing Tests -New tests should be placed in the 📝 `tests/` directory. For example: +New tests should be placed in the 📝 `test/` directory. For example: - Add a test to validate new functionality. - Use `pytest` for unit tests, or extend 📝 `tox.ini` for additional test configurations. @@ -102,7 +102,7 @@ reproducible, and scalable testing workflows. ### Examples -The file 📝 `tests/test_example.py` contains basic examples for the functions in
+The file 📝 `test/test_example.py` contains basic examples for the functions in
📝 `super_repo/test_calculator.py`. In Python, the `assert` statement is used to test if a condition is true.
diff --git a/docs/development/best-practice/test_driven_development.md b/docs/development/best-practice/test_driven_development.md index 94b61d6..1214a84 100644 --- a/docs/development/best-practice/test_driven_development.md +++ b/docs/development/best-practice/test_driven_development.md @@ -75,7 +75,7 @@ Begin by writing a test for the functionality you intend to implement. For example, if you need to create a view that returns a list of objects from the database, and a corresponding model to represent the database table, your test might look like this:
- 📝 `app/tests/my_test.py`: + 📝 `app/test/my_test.py`: ```python from django.test import TestCase diff --git a/tox.ini b/tox.ini index d40e04d..18cd4cd 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ passenv = * # configures the unittest environment for python 3.6 [testenv:test] setenv = - PYTHONPATH={toxinidir}/tests + PYTHONPATH={toxinidir}/test PYTHONUNBUFFERED=yes usedevelop = true # installs dependencies we need for testing @@ -60,8 +60,8 @@ deps = ruff skip_install = true commands = - ruff format --check --diff {posargs:super_repo tests} - ruff check --diff {posargs:super_repo tests docs} + ruff format --check --diff {posargs:super_repo test} + ruff check --diff {posargs:super_repo test docs} [tool:pytest] # If a pytest section is found in one of the possible config files @@ -82,4 +82,4 @@ python_files = # --doctest-glob=\*.rst # --tb=short testpaths = - tests + test