3
3
from openapi_spec_validator .exceptions import OpenAPIValidationError
4
4
5
5
6
- class BaseTestValidOpeAPIv3Validator (object ):
6
+ class BaseTestValidOpenAPIv3Validator (object ):
7
7
8
8
@pytest .fixture
9
9
def spec_url (self ):
@@ -13,7 +13,7 @@ def test_valid(self, validator, spec, spec_url):
13
13
return validator .validate (spec , spec_url = spec_url )
14
14
15
15
16
- class BaseTestFailedOpeAPIv3Validator (object ):
16
+ class BaseTestFailedOpenAPIv3Validator (object ):
17
17
18
18
@pytest .fixture
19
19
def spec_url (self ):
@@ -24,21 +24,21 @@ def test_failed(self, validator, spec, spec_url):
24
24
validator .validate (spec , spec_url = spec_url )
25
25
26
26
27
- class TestLocalEmptyExample (BaseTestFailedOpeAPIv3Validator ):
27
+ class TestLocalEmptyExample (BaseTestFailedOpenAPIv3Validator ):
28
28
29
29
@pytest .fixture
30
30
def spec (self , factory ):
31
31
return factory .spec_from_file ("data/v3.0/empty.yaml" )
32
32
33
33
34
- class TestLocalPetstoreExample (BaseTestValidOpeAPIv3Validator ):
34
+ class TestLocalPetstoreExample (BaseTestValidOpenAPIv3Validator ):
35
35
36
36
@pytest .fixture
37
37
def spec (self , factory ):
38
38
return factory .spec_from_file ("data/v3.0/petstore.yaml" )
39
39
40
40
41
- class TestLocalPetstoreSeparateExample (BaseTestValidOpeAPIv3Validator ):
41
+ class TestLocalPetstoreSeparateExample (BaseTestValidOpenAPIv3Validator ):
42
42
43
43
spec_file = "data/v3.0/petstore-separate/spec/openapi.yaml"
44
44
@@ -51,7 +51,7 @@ def spec(self, factory):
51
51
return factory .spec_from_file (self .spec_file )
52
52
53
53
54
- class TestLocalParentReferenceExample (BaseTestValidOpeAPIv3Validator ):
54
+ class TestLocalParentReferenceExample (BaseTestValidOpenAPIv3Validator ):
55
55
56
56
spec_file = "data/v3.0/parent-reference/openapi.yaml"
57
57
@@ -64,7 +64,7 @@ def spec(self, factory):
64
64
return factory .spec_from_file (self .spec_file )
65
65
66
66
67
- class TestPetstoreExample (BaseTestValidOpeAPIv3Validator ):
67
+ class TestPetstoreExample (BaseTestValidOpenAPIv3Validator ):
68
68
69
69
@pytest .fixture
70
70
def spec (self , factory ):
@@ -76,7 +76,7 @@ def spec(self, factory):
76
76
return factory .spec_from_url (url )
77
77
78
78
79
- class TestApiWithExampe ( BaseTestValidOpeAPIv3Validator ):
79
+ class TestApiWithExample ( BaseTestValidOpenAPIv3Validator ):
80
80
81
81
@pytest .fixture
82
82
def spec (self , factory ):
@@ -88,7 +88,7 @@ def spec(self, factory):
88
88
return factory .spec_from_url (url )
89
89
90
90
91
- class TestPetstoreExpandedExample (BaseTestValidOpeAPIv3Validator ):
91
+ class TestPetstoreExpandedExample (BaseTestValidOpenAPIv3Validator ):
92
92
93
93
@pytest .fixture
94
94
def spec (self , factory ):
0 commit comments