Skip to content

Commit

Permalink
Pre-import odoo.tests
Browse files Browse the repository at this point in the history
Otherwise the load_registry autouse fixture fails if
no module that imports odoo.tests was imported by
the test collector.
  • Loading branch information
sbidoul committed Jun 9, 2022
1 parent 65e0115 commit 8863ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytest_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import pytest

import odoo
import odoo.tests


def pytest_addoption(parser):
Expand Down

0 comments on commit 8863ee8

Please sign in to comment.