def test_list_by_template(collection: MeasurementRunCollection): run_noop_gemd_relation_search_test( search_for='measurement-runs', search_with='measurement-specs', collection=collection, search_fn=collection.list_by_spec, )
def test_list_by_spec(collection): run_noop_gemd_relation_search_test( search_for='material-runs', search_with='material-specs', collection=collection, search_fn=collection.list_by_spec, )
def test_list_by_material(collection: MeasurementRunCollection): run_noop_gemd_relation_search_test( search_for='measurement-runs', search_with='material-runs', collection=collection, search_fn=collection.list_by_material, )
def test_list_by_process(collection: IngredientSpecCollection): run_noop_gemd_relation_search_test( search_for='ingredient-specs', search_with='process-specs', collection=collection, search_fn=collection.list_by_process, )
def test_list_by_material(collection: IngredientSpecCollection): run_noop_gemd_relation_search_test( search_for='ingredient-specs', search_with='material-specs', collection=collection, search_fn=collection.list_by_material, )
def test_list_by_template(collection: ProcessSpecCollection): run_noop_gemd_relation_search_test( search_for='process-specs', search_with='process-templates', collection=collection, search_fn=collection.list_by_template, )
def test_list_by_spec(collection: IngredientRunCollection): run_noop_gemd_relation_search_test( search_for='ingredient-runs', search_with='ingredient-specs', collection=collection, search_fn=collection.list_by_spec, )
def test_list_by_spec(collection: ProcessRunCollection): run_noop_gemd_relation_search_test( search_for='process-runs', search_with='process-specs', collection=collection, search_fn=collection.list_by_spec, )
def test_get_by_process(collection): run_noop_gemd_relation_search_test( search_for='material-runs', search_with='process-runs', collection=collection, search_fn=collection.get_by_process, per_page=1, )