Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing test cases and shuffle case before run #1924

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -67,7 +67,7 @@ def test_same_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
Loading