def test_create(session, project):
    from dispatch.search_filter.service import create
    from dispatch.search_filter.models import SearchFilterCreate
    name = 'name'
    description = 'description'
    expression = [{}]
    type = 'type'
    search_filter_in = SearchFilterCreate(name=name, description=description, expression=expression, type=type, project=project)
    search_filter = create(db_session=session, search_filter_in=search_filter_in)
    assert search_filter
def test_create(session, project):
    from dispatch.search_filter.service import create
    from dispatch.search_filter.models import SearchFilterCreate
    name = 'name'
    description = 'description'
    expression = [{}]
    type = 'type'
    search_filter_in = SearchFilterCreate(name=name, description=description, expression=expression, type=type, project=project)
    search_filter = create(db_session=session, search_filter_in=search_filter_in)
    assert search_filter