Skip to content

How to use pytest when Odoo is running from docker container ? #39

@tarekmokhtarjr

Description

@tarekmokhtarjr

Hello guys,

first i would like to thank you for this awesome tool !
I'm running Odoo from docker container and what i did is the following :

  1. I got inside the container using this command docker exec -ti <my_odoo_container> bash
  2. Then i installed pytest-odoo inside the container pip3 install pytest-odoo
  3. I used this command to run the test pytest -s addons/<my_module>/tests/test_account_move.py --odoo-database=staging_3

But it gives me this error OSError: [Errno 98] Address already in use :
image

Did anyone encounter a similar issue ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions