Skip to content

Commit

Permalink
chore: moved tests to root of project
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Aug 22, 2024
1 parent d9d954a commit ccf2601
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,13 @@ poetry shell

## Running the tests

Run tests before checking code back in. To run tests, first install pytest:
Run tests before checking code back in.

```shell
pip install pytest
pytest
poetry run pytest
```

The tests should run and pass.

```shell
pytest
```

```shell
=========================================================================================================================================================================================================================== test session starts ============================================================================================================================================================================================================================
Expand All @@ -45,11 +40,6 @@ tests/test_detect.py ...

======================================================================================================================================================================================================================= 3 passed in 61.48s (0:01:01) ========================================================================================================================================================================================================================
```
In poetry, you can run the tests with:

```shell
poetry run pytest
```

# Building python package

Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion sdcat/tests/test_detect.py → tests/test_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def run_detect(data_dir: Path, scale: int) -> int:
"""

# Get the root directory of the project
root_dir = Path(__file__).parent.parent
root_dir = Path(__file__).parent.parent / 'sdcat'

num_detections = 0
# Run in temporary directory
Expand Down

0 comments on commit ccf2601

Please sign in to comment.