Skip to content

Commit 98a3c2e

Browse files
committed
TestKit + tox config improvements
1 parent fe85543 commit 98a3c2e

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pytest-cov>=3.0.0
2525
pytest-mock>=3.6.1
2626
teamcity-messages>=1.29
2727
tox>=4.0.0
28+
teamcity-messages>=1.32
2829

2930
# needed for building docs
3031
sphinx

src/neo4j/_async/io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
]
3232

3333

34+
# [bolt-version-bump] search tag when changing bolt version support
3435
from . import ( # noqa - imports needed to register protocol handlers
3536
_bolt3,
3637
_bolt4,

src/neo4j/_sync/io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
]
3232

3333

34+
# [bolt-version-bump] search tag when changing bolt version support
3435
from . import ( # noqa - imports needed to register protocol handlers
3536
_bolt3,
3637
_bolt4,

testkit/testkit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"testkit": {
33
"uri": "https://github.com/neo4j-drivers/testkit.git",
4-
"ref": "5.0"
4+
"ref": "bolt-handshake-v2"
55
}
66
}

testkit/unittests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919

2020
if __name__ == "__main__":
21-
run_python(["-m", "tox", "-vv", "-f", "unit"])
21+
run_python(["-m", "tox", "-vv", "-p", "-f", "unit"])

testkitbackend/test_config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"Feature:Auth:Kerberos": true,
4848
"Feature:Auth:Managed": true,
4949
"Feature:Bolt:3.0": true,
50+
"Feature:Bolt:4.2": true,
5051
"Feature:Bolt:4.3": true,
5152
"Feature:Bolt:4.4": true,
5253
"Feature:Bolt:5.0": true,

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ envlist = py{37,38,39,310,311,312,313}-{unit,integration,performance}
44
requires = virtualenv<20.22.0
55

66
[testenv]
7-
passenv = TEST_NEO4J_*
7+
passenv =
8+
TEST_NEO4J_*
9+
TEAMCITY_VERSION
810
deps = -r requirements-dev.txt
911
setenv =
1012
COVERAGE_FILE={envdir}/.coverage
11-
unit,performance,integration: PYTHONTRACEMALLOC = 10
13+
; unit,performance,integration: PYTHONTRACEMALLOC = 5
1214
usedevelop = true
1315
warnargs =
1416
py{37,38,39,310,311,312}: -W error -W ignore::pytest.PytestUnraisableExceptionWarning
17+
parallel_show_output = true
1518
commands =
1619
coverage erase
1720
unit: coverage run -m pytest {[testenv]warnargs} -v {posargs} tests/unit
1821
integration: coverage run -m pytest {[testenv]warnargs} -v {posargs} tests/integration
1922
performance: python -m pytest --benchmark-autosave -v {posargs} tests/performance
20-
; unit,integration: coverage report
23+
unit,integration: coverage report

0 commit comments

Comments
 (0)