Skip to content

Commit

Permalink
fixup! Add tests for updating alert profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Nov 22, 2023
1 parent 2ad2168 commit a605489
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/web/alertprofiles_test.py
Original file line number Diff line number Diff line change
@@ -163,9 +163,7 @@ def test_alertprofiles_save_profile_with_time_period_template(
valid_during=TimePeriod.WEEKENDS,
).exists()

def test_alertprofiles_save_profile_with_non_existent_id_should_fail(
self, db, client
):
def test_alertprofiles_save_profile_with_str_id_should_fail(self, db, client):
url = reverse('alertprofiles-profile-save')
profile_name = 'Catch 22'

@@ -185,7 +183,9 @@ def test_alertprofiles_save_profile_with_non_existent_id_should_fail(
assert 'Requested profile does not exist' in smart_str(response.content)
assert not AlertProfile.objects.filter(name=profile_name).exists()

def test_alertprofiles_save_profile_with_str_id_should_fail(self, db, client):
def test_alertprofiles_save_profile_with_non_existent_id_should_fail(
self, db, client
):
url = reverse('alertprofiles-profile-save')
profile_name = 'Catch 22'
last_alert_profile_id = getattr(AlertProfile.objects.last(), "pk", 0)

0 comments on commit a605489

Please sign in to comment.