Skip to content

Commit

Permalink
move src/dailyai/tests to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Mar 19, 2024
1 parent 5fc21a7 commit 16257f8
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
pytest --doctest-modules --ignore-glob="*to_be_updated*" src/dailyai
pytest --doctest-modules --ignore-glob="*to_be_updated*" src tests
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ If you want to use this package from another directory, you can run:
pip install path_to_this_repo
```

### Running tests

To run tests you need to install `pytest`:

```
pip install pytest
```

Then, from the root directory, run:

```
pytest --doctest-modules --ignore-glob="*to_be_updated*" src tests
```

## Setting up your editor

This project uses strict [PEP 8](https://peps.python.org/pep-0008/) formatting.
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ Website = "https://daily.co"
[tool.setuptools.packages.find]
# All the following settings are optional:
where = ["src"]

[tool.pytest.ini_options]
pythonpath = ["src"]
Empty file removed src/dailyai/tests/__init__.py
Empty file.
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.

0 comments on commit 16257f8

Please sign in to comment.