Skip to content
Snippets Groups Projects
Daniel Palomar's avatar
Daniel Palomar authored
- Copy [SomOffice
  code](https://git.coopdevs.org/coopdevs/som-connexio/somoffice) to generate a base package to extend the self
  care office.
989f3e57
History

SomOffice Django App

Base App of SomOffice.

Installation

Running locally

Update Poetry dependency

  1. Modify the pyproject.toml to update the version of dependency.
  2. Update poetry.lock using poetry update --lock <dependency-name>
  3. Commit and push the pyproject.toml and poetry.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