]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth/rec: use pytest for the api tests
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 8 Jul 2022 10:27:34 +0000 (12:27 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 8 Jul 2022 11:37:39 +0000 (13:37 +0200)
regression-tests.api/requirements.txt
regression-tests.api/runtests.py

index 487f5ce14e3368c47ab9c55310a4ecca8200778c..e6d94c721444d6b7354a0a732a3c4ee8c3211e15 100644 (file)
@@ -1,5 +1,5 @@
 requests==2.20.0
-nose>=1.3.7
+pytest
 parameterized
 mysql-connector
 psycopg2
index 645628fe9435c65b67f45f6740e73cf6b5fabae0..bbec7b0fab62b53c064e87f5e822c76f8e59dc5b 100755 (executable)
@@ -289,7 +289,7 @@ test_env.update({
 
 try:
     print("")
-    run_check_call(["nosetests", "--with-xunit", "-v"] + tests, env=test_env)
+    run_check_call(["pytest", "--junitxml=pytest.xml", "-v"] + tests, env=test_env)
 except subprocess.CalledProcessError as ex:
     returncode = ex.returncode
 finally: