#NEWLINE# @ pytest . fixture ( ) #NEWLINE# def spec( app , schemas , routes ) : #NEWLINE# #INDENT# spec = APISpec ( title = 'test api' , version = '0.1.0' , plugins = ( 'apispec.ext.marshmallow' , 'flask_resty.spec' ) ) #NEWLINE# spec . definition ( 'Foo' , schema = schemas [ 'foo' ] ) #NEWLINE# spec . add_path ( view = routes [ 'fooList' ] ) #NEWLINE# spec . add_path ( view = routes [ 'foo' ] ) #NEWLINE# spec . add_path ( view = routes [ 'bar' ] ) #NEWLINE# return spec . to_dict ( )