Skip to content
Snippets Groups Projects
Commit 2f41a4aa authored by Daniel Palomar's avatar Daniel Palomar
Browse files

Add documentation to setup development environment

parent ed9c908b
No related branches found
No related tags found
1 merge request!33Add documentation to setup development environment
Pipeline #4853 passed
odoo-somconnexio-python-client
......@@ -163,6 +163,25 @@ Create a class that expose a dict objecti with the next structure:
## Development
### Setup environment
1. Install `pyenv`
```sh
curl https://pyenv.run | bash
```
2. Build the Python version
```sh
pyenv install 3.8.13
```
3. Create a virtualenv
```sh
pyenv virtualenv 3.8.13 odoo-somconnexio-python-client
```
4. Install dependencies
```sh
pyenv exec pip install -r requirements-dev.txt
```
### Test the HTTP request
We are using the HTTP recording plugin of Pytest: [pytest-recording](https://pytest-vcr.readthedocs.io/).
......
tox==3.25.0
requests==2.27.1
mock==4.0.3
unittest2==1.1.0
pytest==6.2.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment