From 61bb99a66d658d9ff0223ac866cf9e18a0191add Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Tue, 5 Mar 2024 18:05:49 +0530 Subject: [PATCH] Fix failing test cases and shuffle case before run (#1924) fix failing test cases and shuffle case before run --- Makefile | 4 ++-- care/facility/tests/test_upload_external_result.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bbd32d5c3d..37bae1c950 100644 --- a/Makefile +++ b/Makefile @@ -41,9 +41,9 @@ makemigrations: docker compose exec backend bash -c "python manage.py makemigrations" test: - docker compose exec backend bash -c "python manage.py test --keepdb --parallel" + docker compose exec backend bash -c "python manage.py test --keepdb --parallel --shuffle" test-coverage: - docker compose exec backend bash -c "coverage run manage.py test --settings=config.settings.test --keepdb --parallel" + docker compose exec backend bash -c "coverage run manage.py test --settings=config.settings.test --keepdb --parallel --shuffle" docker compose exec backend bash -c "coverage combine || true; coverage xml" docker compose cp backend:/app/coverage.xml coverage.xml diff --git a/care/facility/tests/test_upload_external_result.py b/care/facility/tests/test_upload_external_result.py index fe4f0dc918..7e0cee89a6 100644 --- a/care/facility/tests/test_upload_external_result.py +++ b/care/facility/tests/test_upload_external_result.py @@ -32,7 +32,7 @@ def test_different_district_upload(self): "gender": "m", "mobile_number": 8888888888, "address": "Upload test address", - "ward": self.ward.id, + "ward": self.ward.number, "local_body": str(self.local_body.name), "local_body_type": "municipality", "source": "Secondary contact aparna",