Skip to content

Commit

Permalink
fixup! [ADD] resource_multi_week_calendar
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Aug 30, 2024
1 parent 50d8b1a commit 96c50f6
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions resource_multi_week_calendar/tests/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,6 @@ def create_simple_child(self):


class TestCalendarConstraints(CalendarCase):
def test_week_sequence_unique(self):
self.Calendar.create(
{
"name": "One",
"parent_calendar_id": self.parent_calendar.id,
"week_sequence": 1,
}
)
with self.assertRaises(ValidationError):
self.Calendar.create(
{
"name": "Two",
"parent_calendar_id": self.parent_calendar.id,
"week_sequence": 1,
}
)
self.Calendar.create(
{
"name": "Two",
"parent_calendar_id": self.parent_calendar.id,
"week_sequence": 2,
}
)

# Calendars with different parents can have the same sequence.
new_parent = self.Calendar.create(
{
"name": "New Parent",
}
)
self.Calendar.create(
{
"name": "New Child",
"parent_calendar_id": new_parent.id,
"week_sequence": 1,
}
)

def test_cant_add_child_to_child(self):
one = self.Calendar.create(
{
Expand Down

0 comments on commit 96c50f6

Please sign in to comment.