Skip to content

Commit 6b581a4

Browse files
committed
fix: update applicanttest to new api
1 parent 5cbbc91 commit 6b581a4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/ApplicantTest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class ApplicantTest(unittest.TestCase):
1010
def setUp(self) -> None:
1111
self.committee = Committee(
1212
"TestKom", interview_length=timedelta(minutes=30))
13-
self.committee.add_intervals_with_capacities({
14-
TimeInterval(datetime(2024, 8, 24, 8, 0), datetime(2024, 8, 24, 9, 30)): 1,
15-
TimeInterval(datetime(2024, 8, 24, 9, 0), datetime(2024, 8, 24, 9, 30)): 1
16-
})
13+
self.committee.add_interview_slot(TimeInterval(
14+
datetime(2024, 8, 24, 8, 0), datetime(2024, 8, 24, 9, 30)), "R9")
15+
self.committee.add_interview_slot(TimeInterval(
16+
datetime(2024, 8, 24, 9, 0), datetime(2024, 8, 24, 9, 30)), "R8")
1717

1818
self.test_applicant = Applicant("Test Testesen")
1919

@@ -50,6 +50,6 @@ def test_add_interval_sanitizes(self) -> None:
5050
datetime(2024, 8, 24, 11, 30)),
5151
})
5252

53+
5354
if __name__ == "__main__":
5455
unittest.main(exit=False)
55-

0 commit comments

Comments
 (0)