Fix python3 functional tests

Fix python3 functional tests to run properly.

Story: 2010867
Task: 48556

Test Plan

PASSED Run tox -e py3

Change-Id: I16b4b9ba23ee5356c2b81daab4c3e74b09d078d9
Signed-off-by: Charles Short <charles.short@windriver.com>
This commit is contained in:
Charles Short 2023-12-14 09:50:16 -05:00
parent dd24168756
commit 428f4025f7
3 changed files with 11 additions and 7 deletions

View File

@ -6,3 +6,4 @@ pbr>=2.0 # Apache-2.0
click
rich
pyyaml
PyGObject

View File

@ -6,8 +6,11 @@ hacking>=3.0,<3.1 # Apache-2.0
coverage>=4.0,!=4.4 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
testtools>=1.4.0 # MIT
oslotest>=3.8.0 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.5.0 # MIT
pytest
pylint
yamllint<1.26.4 # GPLv3
doc8

View File

@ -7,17 +7,17 @@ ignore_basepython_conflict = true
[testenv]
basepython = python3
usedevelop = true
sitepacages = False
usedevelop = True
sitepackages = True
setenv =
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run {posargs}
commands = pytest -rx -v ./apt_ostree/tests
[testenv:lower-constraints]
deps = -c{toxinidir}/lower-constraints.txt