def test_parse_slots():
    slots = dict()
    with open(TEST_SLOT_FILE, "r", encoding="utf8") as f:
        slots = json.load(f)
    first_availability, slots_count = parse_slots(slots)
    assert first_availability == datetime(2021, 4, 19, 17, 15)
    assert slots_count == 72
Beispiel #2
0
def test_parse_slots():
    slots = dict()
    with open(Path('tests', 'fixtures', 'mapharma', 'slots.json'), 'r', encoding='utf8') as f:
        slots = json.load(f)
    first_availability, slots_count = parse_slots(slots)
    assert first_availability == datetime(2021, 4, 19, 17, 15)
    assert slots_count == 72