Skip to content

Commit 8128e6e

Browse files
authored
Fix trytond tests on potel-base (#4205)
Fixing this: ``` ==================================== ERRORS ==================================== _________ ERROR collecting tests/integrations/trytond/test_trytond.py __________ ImportError while importing test module '/home/runner/work/sentry-python/sentry-python/tests/integrations/trytond/test_trytond.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: .tox/py3.7-trytond-v5.0.9/lib/python3.7/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py3.7-trytond-v5.0.9/lib/python3.7/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1006: in _gcd_import ??? <frozen importlib._bootstrap>:983: in _find_and_load ??? <frozen importlib._bootstrap>:967: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:677: in _load_unlocked ??? .tox/py3.7-trytond-v5.0.9/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) tests/integrations/trytond/test_trytond.py:11: in <module> from trytond.wsgi import app as trytond_app .tox/py3.7-trytond-v5.0.9/lib/python3.7/site-packages/trytond/wsgi.py:12: in <module> from werkzeug.contrib.fixers import ProxyFix E ModuleNotFoundError: No module named 'werkzeug.contrib' ```
1 parent d33bf7e commit 8128e6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/populate_tox/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
"package": "trytond",
165165
"deps": {
166166
"*": ["werkzeug"],
167-
"<=5.0": ["werkzeug<1.0"],
167+
"<5.1": ["werkzeug<1.0"],
168168
},
169169
},
170170
"typer": {

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-03-27T09:29:30.733135+00:00
13+
# Last generated: 2025-03-27T10:11:24.425788+00:00
1414

1515
[tox]
1616
requires =
@@ -718,6 +718,7 @@ deps =
718718
trytond-v7.0.9: trytond==7.0.9
719719
trytond-v7.4.8: trytond==7.4.8
720720
trytond: werkzeug
721+
trytond-v5.0.9: werkzeug<1.0
721722

722723
typer-v0.15.2: typer==0.15.2
723724

0 commit comments

Comments
 (0)