Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Mar 5, 2021
2 parents edddeea + 6da9ded commit 570fb44
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion authorityspoke/io/api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def make_spec() -> APISpec:
for factor_name in factor_names:
factor_options.append({"$ref": f"#/components/schemas/{factor_name}"})

del holding_spec.components._schemas["Factor"]
del holding_spec.components.schemas["Factor"]

holding_spec.components.schema(
"Factor",
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ doc8
flake8-comprehensions
ipykernel
mypy
pipenv-to-requirements
pydocstyle
pytest-cov
pytest-profiling
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
anchorpoint>=0.4.4
apispec[validation]
apispec[validation]~=4.3.0
marshmallow>=3.10
legislice>=0.4.1
nettlesome>=0.2.0
Expand Down
4 changes: 3 additions & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_make_entity_from_str_without_mentioned(self):

def test_conversion_to_generic(self, make_entity):
e = make_entity
assert e["motel_specific"].make_generic().compare_keys(e["motel"])
assert e["motel_specific"].generic is False
new = e["motel_specific"].make_generic()
assert new.generic is True

def test_repr_equal_after_make_generic(self, make_entity):
"""
Expand Down

0 comments on commit 570fb44

Please sign in to comment.