Skip to content

Commit

Permalink
Document first basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Jul 27, 2023
1 parent 193d053 commit fb81c06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/greencheck/tests/test_directory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.test import RequestFactory
from django.urls import reverse
from waffle.testutils import override_flag

Expand All @@ -8,6 +7,9 @@
@pytest.mark.django_db
@override_flag("directory_listing", active=True)
def test_directory(client):
"""
Confirm that the directory view is accessible when our flag is active
"""
# when: the directory is accessed with an active flag
res = client.get(reverse("directory-index"))

Expand Down

0 comments on commit fb81c06

Please sign in to comment.