def test__FacilityQuery__has_gsrn__Facility_does_not_exist__returs_nothing( seeded_session, gsrn): query = FacilityQuery(seeded_session) \ .has_gsrn(gsrn) assert query.count() == 0 assert query.one_or_none() is None
def test__FacilityQuery__has_public_id__Facility_does_not_exist__returs_nothing( seeded_session, public_id): query = FacilityQuery(seeded_session) \ .has_public_id(public_id) assert query.count() == 0 assert query.one_or_none() is None