SomOffice Django App
Base App of SomOffice.
Installation
Running locally
Update Poetry dependency
- Modify the
pyproject.toml
to update the version of dependency. - Update
poetry.lock
usingpoetry update --lock <dependency-name>
- Commit and push the
pyproject.toml
andpoetry.lock
Running tests
To run tests on backend you have to run:
poetry run pytest
HTTP requests in tests
This project uses pytest-recording to record and mock outgoing HTTP requests to 3rd party APIs.
If you are writing a new tests that is making requests, you should run:
poetry run pytest --record-mode=once path/to/your/test
You might need to record requests for an specific tests. In that case make sure to only run the tests affected and run
poetry run pytest --record-mode=rewrite path/to/your/test