File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 11import pytest
22from flask import Flask
3+ from apispec import APISpec
4+ from apispec .ext .marshmallow import MarshmallowPlugin
5+
6+ @pytest .fixture
7+ def spec ():
8+ return APISpec (
9+ title = "Python-LabThings PyTest" ,
10+ version = "1.0.0" ,
11+ openapi_version = "3.0.2" ,
12+ plugins = [MarshmallowPlugin ()],
13+ )
314
415
516@pytest .fixture ()
Original file line number Diff line number Diff line change 11from labthings .server .spec import utilities
22import json
3- from apispec import APISpec
4- from apispec .ext .marshmallow import MarshmallowPlugin
53from marshmallow import fields
64import pytest
75
@@ -24,16 +22,6 @@ def delete(self):
2422 return ViewClass
2523
2624
27- @pytest .fixture
28- def spec ():
29- return APISpec (
30- title = "Python-LabThings PyTest" ,
31- version = "1.0.0" ,
32- openapi_version = "3.0.2" ,
33- plugins = [MarshmallowPlugin ()],
34- )
35-
36-
3725def test_initial_update_spec (view_class ):
3826 initial_spec = {"key" : "value" }
3927 utilities .update_spec (view_class , initial_spec )
You can’t perform that action at this time.
0 commit comments