Skip to content

Commit

Permalink
Fix failing test cases and shuffle case before run (#1924)
Browse files Browse the repository at this point in the history
fix failing test cases and shuffle case before run
  • Loading branch information
sainak authored and Ashesh3 committed Mar 5, 2024
1 parent 8706bb7 commit 61bb99a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion care/facility/tests/test_upload_external_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 61bb99a

Please sign in to comment.