From 3e04f77965965de151635a4453dc37ce24941179 Mon Sep 17 00:00:00 2001 From: James Bensley Date: Mon, 11 Nov 2024 16:57:59 +0100 Subject: [PATCH] Download allocated ASN lists for pytest --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 9598af1..03617d4 100644 --- a/tox.ini +++ b/tox.ini @@ -38,8 +38,14 @@ recreate=true deps = {[testenv]deps} passenv = * changedir = {toxinidir} +markers = + sequential_tests commands = + # Ensure we have the unallocated ASN data + python3 ./dnas/scripts/update_asn_allocations.py --debug + # Run up to 4 tests in parallel (those which are no marked as being sequential tests) pytest -vvvv -n 4 -m "not sequential_tests" dnas/tests/ {posargs} + # Run the remaining tests which must be run sequentially pytest -vvvv -m "sequential_tests" dnas/tests/ {posargs} [testenv:shellcheck]