-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,10 @@ def test_generating_dummy_data(django_app): | |
login_page.form["username"] = "[email protected]" | ||
login_page.form["password"] = "admin" # pragma: allowlist secret | ||
ml_page = login_page.form.submit().follow() | ||
assert "dummy data" in ml_page | ||
assert "Generate a dummy consultation" in ml_page | ||
|
||
# Check dummy data button does generate a new consultation | ||
initial_count = Consultation.objects.all().count() | ||
# TODO - why isn't this working | ||
ml_page.clickbutton("Generate dummy consultation") | ||
ml_page.form.submit("generate_dummy_consultation") | ||
count_after_dummy_data = Consultation.objects.all().count() | ||
assert count_after_dummy_data > initial_count |