def test_close_matches_with_sample_type(session): browser = Browser(session) pattern = "pMOD8-pGRR-W8" samples = browser.close_matches(pattern, sample_type="Plasmid") assert len(samples) > 0 sample_type = session.SampleType.find_by_name("Plasmid") for s in samples: assert s.sample_type_id == sample_type.id
def test_close_match(session): browser = Browser(session) samples = browser.close_matches("pMOD8-pGRR-W8") assert len(samples) > 1