From: Kees Monshouwer Date: Fri, 8 Jul 2022 10:27:34 +0000 (+0200) Subject: auth/rec: use pytest for the api tests X-Git-Tag: auth-4.8.0-alpha0~7^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db7b023006477879bb6b71970b6c017d6fc5d924;p=thirdparty%2Fpdns.git auth/rec: use pytest for the api tests --- diff --git a/regression-tests.api/requirements.txt b/regression-tests.api/requirements.txt index 487f5ce14e..e6d94c7214 100644 --- a/regression-tests.api/requirements.txt +++ b/regression-tests.api/requirements.txt @@ -1,5 +1,5 @@ requests==2.20.0 -nose>=1.3.7 +pytest parameterized mysql-connector psycopg2 diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index 645628fe94..bbec7b0fab 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -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: