diff --git a/.github/workflows/Quality_Assessment_&_Awarding_v2.yml b/.github/workflows/Quality_Assessment_&_Awarding_v2.yml index f1b2834..7886ddd 100644 --- a/.github/workflows/Quality_Assessment_&_Awarding_v2.yml +++ b/.github/workflows/Quality_Assessment_&_Awarding_v2.yml @@ -81,7 +81,7 @@ jobs: - name: Run tests run: | - python3 -m pytest -v + python3 -m pytest -v tests/test_auth.py tests/test_documents.py - name: Step definition for validating the workflow uses: eosc-synergy/sqaaas-step-action@v1 diff --git a/tests/__pycache__/test_auth.cpython-310-pytest-8.2.2.pyc b/tests/__pycache__/test_auth.cpython-310-pytest-8.2.2.pyc index f52cbfe..2585e27 100644 Binary files a/tests/__pycache__/test_auth.cpython-310-pytest-8.2.2.pyc and b/tests/__pycache__/test_auth.cpython-310-pytest-8.2.2.pyc differ diff --git a/tests/__pycache__/test_documents.cpython-310-pytest-8.2.2.pyc b/tests/__pycache__/test_documents.cpython-310-pytest-8.2.2.pyc index 5868aa3..f5d71ce 100644 Binary files a/tests/__pycache__/test_documents.cpython-310-pytest-8.2.2.pyc and b/tests/__pycache__/test_documents.cpython-310-pytest-8.2.2.pyc differ diff --git a/tests/test_auth.py b/tests/test_auth.py index 4d701cf..d3a64d0 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -11,7 +11,6 @@ def test_auth_register(): - """ # correct new username and password payload = { "user": "userA", @@ -27,7 +26,7 @@ def test_auth_register(): } response = requests.post(PATH + '/register', json=payload) assert response.status_code == 201 - """ + # username and password already exist payload = {