mirror of
https://github.com/enpaul/kodak.git
synced 2025-12-18 00:40:37 +00:00
Fix typing errors
Fix missing dependencies in static tox envs
This commit is contained in:
@@ -10,11 +10,15 @@ yaml = ruamel.yaml.YAML(typ="safe") # pylint: disable=invalid-name
|
||||
|
||||
|
||||
def test_openapi():
|
||||
"""Validate the OpenAPI specification document structure"""
|
||||
openapi_spec_validator.validate_spec(
|
||||
yaml.load(importlib.resources.read_text("kodak", "openapi.yaml"))
|
||||
)
|
||||
|
||||
|
||||
def test_openapi_version():
|
||||
"""Check that the OpenAPI metadata matches the package metadata"""
|
||||
spec = yaml.load(importlib.resources.read_text("kodak", "openapi.yaml"))
|
||||
assert spec["info"]["version"] == __about__.__version__
|
||||
assert spec["info"]["license"]["name"] == __about__.__license__
|
||||
assert spec["info"]["title"].lower() == __about__.__title__.lower()
|
||||
|
||||
Reference in New Issue
Block a user