Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
f1b4198c
Verified
Commit
f1b4198c
authored
6 months ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
refactor: replace deprecated validator interface
parent
84b9750e
1 merge request
!31
Resolve "Test validating messages with references to GeoJson schema in both JS and python"
Pipeline
#230557
passed with stages
in 1 minute and 36 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/test_schemas.py
tests/test_schemas.py
+3
-2
No files found.
tests/test_schemas.py
View file @
f1b4198c
from
openapi_spec_validator
import
o
pen
api_v30_s
pec
_v
alidator
from
openapi_spec_validator
import
O
pen
APIV30S
pec
V
alidator
from
openapi_spec_validator.readers
import
read_from_filename
from
openapi_schema_validator
import
validate
from
jsonschema.validators
import
RefResolver
...
...
@@ -58,7 +58,8 @@ class TestSpecs(SchemaTestCase):
"""
print
(
"TEST: compiled schema matches openapi v3 spec"
)
schema
=
self
.
load_schema
()
self
.
assertIsNone
(
openapi_v30_spec_validator
.
validate
(
schema
))
errors
=
list
(
OpenAPIV30SpecValidator
(
schema
).
iter_errors
())
self
.
assertEqual
(
len
(
errors
),
0
)
class
TestAllMessageExamples
(
SchemaTestCase
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment