move src/dailyai/tests to tests

This commit is contained in:
Aleix Conchillo Flaqué
2024-03-19 14:57:50 -07:00
parent 5fc21a7508
commit 16257f8ec0
11 changed files with 18 additions and 1 deletions

View File

@@ -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

View File

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

View File

@@ -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"]