1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-09-18 21:21:59 +00:00

Rename project to kodak

This commit is contained in:
2021-10-28 23:17:00 -04:00
parent 99d2ca4816
commit 67abbd5374
31 changed files with 132 additions and 152 deletions

View File

@@ -3,7 +3,7 @@ from pathlib import Path
import toml
from fresnel_lens import __about__
from kodak import __about__
def test_about():

View File

@@ -3,7 +3,7 @@ import importlib.resources
import openapi_spec_validator
import ruamel.yaml
from fresnel_lens import __about__
from kodak import __about__
yaml = ruamel.yaml.YAML(typ="safe") # pylint: disable=invalid-name
@@ -11,10 +11,10 @@ yaml = ruamel.yaml.YAML(typ="safe") # pylint: disable=invalid-name
def test_openapi():
openapi_spec_validator.validate_spec(
yaml.load(importlib.resources.read_text("fresnel_lens", "openapi.yaml"))
yaml.load(importlib.resources.read_text("kodak", "openapi.yaml"))
)
def test_openapi_version():
spec = yaml.load(importlib.resources.read_text("fresnel_lens", "openapi.yaml"))
spec = yaml.load(importlib.resources.read_text("kodak", "openapi.yaml"))
assert spec["info"]["version"] == __about__.__version__