Exemple #1
0
def test__MeasurementQuery__has_any_gsrn__Measurement_does_not_exist__returs_nothing(seeded_session):
    query = MeasurementQuery(seeded_session) \
        .has_any_gsrn(['a GSRN not present in the database', 'another'])

    assert query.count() == 0
    assert query.one_or_none() is None
Exemple #2
0
def test__MeasurementQuery__has_id__Measurement_does_not_exist__returs_nothing(seeded_session, measurement_id):
    query = MeasurementQuery(seeded_session) \
        .has_id(measurement_id)

    assert query.count() == 0
    assert query.one_or_none() is None