Skip to content

Commit 60d1210

Browse files
committed
Bumped package versions, modified tox.ini to actually use new deps
Signed-off-by: Max Chesterfield <max.chesterfield@zepben.com>
1 parent 02b5401 commit 60d1210

3 files changed

Lines changed: 15 additions & 16 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838

3939
[project.optional-dependencies]
4040
test = [
41-
"pytest==7.1.2",
42-
"pytest-cov==2.10.1",
43-
"pytest-asyncio==0.19.0",
44-
"pytest-timeout==1.4.2",
45-
"hypothesis==6.56.3",
41+
"pytest>=7.2.0",
42+
"pytest-cov==6.1.1",
43+
"pytest-asyncio==0.26.0",
44+
"pytest-timeout==2.4.0",
45+
"hypothesis==6.119.4", # 6.120.0 has issues with one of our large tests
4646
"grpcio-testing==1.61.3",
4747
"pylint==2.14.5",
4848
"six==1.16.0",

test/services/network/translator/test_network_translator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,18 @@
202202

203203
@pytest.mark.timeout(100000)
204204
@given(**types_to_test)
205-
@settings(suppress_health_check=[HealthCheck.too_slow, HealthCheck.large_base_example, HealthCheck.data_too_large])
205+
@settings(suppress_health_check=[HealthCheck.too_slow, HealthCheck.large_base_example])
206206
def test_network_service_translations(**kwargs):
207207
#
208208
# NOTE: To prevent the `assume` required for the location from making this test take way too long, it has been separated out.
209209
#
210210
# If this test still appears to lock up, it is likely you have missed validating a class or forgot to exclude the table. Either figure out which
211211
# case you have, or wait for the test to finish, and it will tell you.
212212
#
213+
# NOTE: updating hypothesis can break this test on python 3.9 to 1.200.0 and beyond, if you do that, and it breaks, this command
214+
# will run only this test:
215+
# tox -e py39 -- test/services/network/translator/test_network_translator.py::test_network_service_translations --no-cov
216+
#
213217
validate_service_translations(
214218
NetworkService,
215219
NetworkServiceComparator(),

tox.ini

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@ envlist =
66

77
[testenv]
88
# run our tests, and setup the dependecy tree
9-
allowlist_externals = /bin/bash
10-
/usr/bin/bash
119
passenv = GITHUB_*
1210
pip_pre = true
13-
deps =
14-
.[test]
11+
extras = test
1512
depends =
1613
# require clean to run before the tests
1714
py{312, 311, 310, 39}: clean
1815

1916
# build the package after testing
2017
build: py{312, 311, 310, 39}
21-
commands =
22-
pytest --cov=zepben.evolve --cov-append --cov-report=term-missing --cov-branch {posargs}
18+
commands = pytest --cov=zepben.evolve --cov-report=xml --cov-branch {posargs}
2319

2420
[testenv:clean]
2521
# remove coverage data from the previous run
@@ -29,10 +25,8 @@ commands = coverage erase
2925

3026
[testenv:build]
3127
# build the wheel
32-
deps =
33-
.[build]
34-
commands =
35-
python -m build .
28+
extras = build
29+
commands = python -m build .
3630

3731
[pytest]
3832
pythonpath = ./src ./test
@@ -41,4 +35,5 @@ log_file = pytest.log
4135
log_file_date_format = %Y-%m-%d %H:%M:%S
4236
log_file_format = %(asctime)s %(levelname)s %(message)s
4337
asyncio_mode = auto
38+
asyncio_default_fixture_loop_scope = function
4439
timeout = 15

0 commit comments

Comments
 (0)