From c4028e519b22c861a0c09450ba3c3645baaad5d9 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Mon, 15 Dec 2025 23:28:29 +0800 Subject: [PATCH] Option for skipping task test --- tests/conftest.py | 1 + tests/test_task.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index c09292d..f9b203f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -62,6 +62,7 @@ def pytest_addoption(parser): "jwt-secret-keyfile", # server was not configured with a keyfile "foxx", # foxx is not supported "js-transactions", # javascript transactions are not supported + "task", # tasks API "enterprise", # skip what used to be "enterprise-only" before 3.12 ], default=[], diff --git a/tests/test_task.py b/tests/test_task.py index 4e1aee6..008e25d 100644 --- a/tests/test_task.py +++ b/tests/test_task.py @@ -10,10 +10,13 @@ @pytest.mark.asyncio -async def test_task_management(sys_db, bad_db): +async def test_task_management(sys_db, bad_db, skip_tests): # This test intentionally uses the system database because cleaning up tasks is # easier there. + if "task" in skip_tests: + pytest.skip("Skipping task tests") + test_command = 'require("@arangodb").print(params);' # Test errors