def test_parse_slots(): slots = get_slots( '5ffc744c68dedf073a5b87a2', 'Premi%C3%A8re%20injection%20vaccin%20anti%20covid-19%20(%20%2B50%20ans%20avec%20comorbidit%C3%A9)', '2021-04-16T00:00:00+00:00', '2021-06-30T00:00:00+00:00', limit=MAIIA_LIMIT, client=client) result = parse_slots(slots) assert result.isoformat() == '2021-05-13T13:40:00+00:00'
def test_get_slots(): slots = get_slots( "5ffc744c68dedf073a5b87a2", "Premi%C3%A8re%20injection%20vaccin%20anti%20covid-19%20(%20%2B50%20ans%20avec%20comorbidit%C3%A9)", "2021-04-16T00:00:00+00:00", "2021-06-30T00:00:00+00:00", limit=MAIIA_LIMIT, client=client, ) assert len(slots) == 798 assert slots[42]["startDateTime"] == "2021-05-14T07:00:00.000Z"