move src/dailyai/tests to tests
This commit is contained in:
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -40,4 +40,4 @@ jobs:
|
|||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pytest --doctest-modules --ignore-glob="*to_be_updated*" src/dailyai
|
pytest --doctest-modules --ignore-glob="*to_be_updated*" src tests
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -99,6 +99,20 @@ If you want to use this package from another directory, you can run:
|
|||||||
pip install path_to_this_repo
|
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
|
## Setting up your editor
|
||||||
|
|
||||||
This project uses strict [PEP 8](https://peps.python.org/pep-0008/) formatting.
|
This project uses strict [PEP 8](https://peps.python.org/pep-0008/) formatting.
|
||||||
|
|||||||
@@ -45,3 +45,6 @@ Website = "https://daily.co"
|
|||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
# All the following settings are optional:
|
# All the following settings are optional:
|
||||||
where = ["src"]
|
where = ["src"]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
pythonpath = ["src"]
|
||||||
|
|||||||
Reference in New Issue
Block a user