We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fae9c commit ca110a2Copy full SHA for ca110a2
tests/mock/odoo/odoo/__init__.py
@@ -1,3 +1,4 @@
1
-from mock import MagicMock
+from . import tests
2
+from unittest.mock import MagicMock
3
registry = MagicMock()
4
tools = MagicMock()
tests/mock/odoo/odoo/tests/__init__.py
@@ -1,2 +1,2 @@
common = MagicMock()
tests/mock/odoo/pyproject.toml
@@ -0,0 +1,13 @@
+[build-system]
+requires = ["hatchling", "hatch-odoo"]
+build-backend = "hatchling.build"
+
5
+[project]
6
+name = "odoo"
7
+version = "0.1.0"
8
+description = "Fake odoo used in unitest to avoid testing against real odoo"
9
+dependencies = [
10
+]
11
12
+[tool.hatch.build]
13
+packages = ["odoo"]
tests/mock/odoo/setup.py
0 commit comments