Skip to content

Commit

Permalink
Merge branch 'google_forms' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-li committed Aug 30, 2024
2 parents 34f09b0 + f706db9 commit 8e887ca
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ def setUp(self):
name='Active')

def test_is_renewal_survey_completed_returns_false(self):
""" Test that when is_renewal_survey_completed returns False, the
correct ValidationError is raised. """

# With the dummy backend, is_renewal_survey_completed returns whether
# the PI username is less than 5 characters. This username is thus
# greater than 5 characters.
user = User.objects.create(
email='[email protected]',
first_name='Test',
Expand Down Expand Up @@ -62,6 +68,12 @@ def test_is_renewal_survey_completed_returns_false(self):
str(form.errors))

def test_is_renewal_survey_completed_returns_true(self):
""" Test that when is_renewal_survey_completed returns True, the form
is valid. """

# With the dummy backend, is_renewal_survey_completed returns whether
# the PI username is less than 5 characters. This username is thus
# less than 5 characters.
user = User.objects.create(
email='[email protected]',
first_name='Test',
Expand Down

0 comments on commit 8e887ca

Please sign in to comment.