Unable to run tests
When running tests I get the following error:
ImportError: Failed to import test module: test_scenario
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/loader.py", line 407, in _find_test_path
module = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/loader.py", line 350, in _get_module_from_name
__import__(name)
File "/home/pokoli/projectes/tryton/modules/production/tests/test_scenario.py", line 4, in <module>
from trytond.tests.test_tryton import load_doc_tests
File "/home/pokoli/projectes/tryton/trytond/trytond/tests/test_tryton.py", line 62, in <module>
Pool.start()
File "/home/pokoli/projectes/tryton/trytond/trytond/pool.py", line 108, in start
register_classes(with_test=cls.test)
File "/home/pokoli/projectes/tryton/trytond/trytond/modules/__init__.py", line 357, in register_classes
for node in create_graph(get_module_list(with_test=with_test)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/projectes/tryton/trytond/trytond/modules/__init__.py", line 147, in create_graph
info = get_module_info(module)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/projectes/tryton/trytond/trytond/modules/__init__.py", line 85, in get_module_info
with tools.file_open(os.path.join(name, 'tryton.cfg')) as fp:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/projectes/tryton/trytond/trytond/tools/misc.py", line 29, in file_open
path = find_path(name, subdir)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/projectes/tryton/trytond/trytond/tools/misc.py", line 51, in find_path
location = os.path.dirname(epoint.load().__file__)
^^^^^^^^^^^^^
File "/home/pokoli/.virtualenvs/tryton/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2516, in load
self.require(*args, **kwargs)
File "/home/pokoli/.virtualenvs/tryton/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2539, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/.virtualenvs/tryton/lib/python3.11/site-packages/pkg_resources/__init__.py", line 827, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/home/pokoli/.virtualenvs/tryton/lib/python3.11/site-packages/pkg_resources/__init__.py", line 868, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'trytond_stock<6.10,>=6.9' distribution was not found and is required by the application
Rollbacking changeset 2306ca8df7ee fixes the issue