Skip to content

Commit

Permalink
Rename test #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludee committed Dec 6, 2024
1 parent abbf8c1 commit 950d57f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/development/best-practice/continuous_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Install the required package in a python environment. <br>

## 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.

Expand Down Expand Up @@ -102,7 +102,7 @@ reproducible, and scalable testing workflows.

### Examples

The file 📝 `tests/test_example.py` contains basic examples for the functions in <br>
The file 📝 `test/test_example.py` contains basic examples for the functions in <br>
📝 `super_repo/test_calculator.py`.

In Python, the `assert` statement is used to test if a condition is true. <br>
Expand Down
2 changes: 1 addition & 1 deletion docs/development/best-practice/test_driven_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <br>
📝 `app/tests/my_test.py`:
📝 `app/test/my_test.py`:

```python
from django.test import TestCase
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -82,4 +82,4 @@ python_files =
# --doctest-glob=\*.rst
# --tb=short
testpaths =
tests
test

0 comments on commit 950d57f

Please sign in to comment.