Skip to content

Commit

Permalink
[#2703] Update a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Sep 17, 2024
1 parent 0eeae63 commit e24db94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amy/workshops/tests/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ def test_merging_basic_attributes(self):
"longitude": self.event_a.longitude,
"learners_pre": self.event_b.learners_pre,
"learners_post": self.event_a.learners_post,
# Doesn't follow strategy, because it's refreshed with a slug from Event A:
"instructors_pre": self.event_b.instructors_pre,
"instructors_post": self.event_a.instructors_post,
"learners_longterm": self.event_b.learners_longterm,
Expand All @@ -1113,6 +1114,7 @@ def test_merging_basic_attributes(self):
rv = self.client.post(self.url, data=self.strategy)
self.assertEqual(rv.status_code, 302)
self.event_b.refresh_from_db()
assertions["instructors_pre"] = self.event_b.instructors_pre # needs refresh

for key, value in assertions.items():
self.assertEqual(getattr(self.event_b, key), value, key)
Expand Down

0 comments on commit e24db94

Please sign in to comment.