Skip to content

Commit

Permalink
test CAP_API_KEY can be empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed May 20, 2021
1 parent 501a2fb commit 039f183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/io/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from authorityspoke.io.downloads import CAPClient, AuthoritySpokeAPIError
from authorityspoke.io.readers import read_decision
from authorityspoke.io.loaders import load_decision
from authorityspoke.io.loaders import load_and_read_decision
from authorityspoke.io import writers
from tests.test_notebooks import CAP_API_KEY
Expand Down
4 changes: 2 additions & 2 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

load_dotenv()

CAP_API_KEY = os.getenv("CAP_API_KEY")
CAP_API_KEY = os.getenv("CAP_API_KEY") or ""


class TestIntroduction:
Expand Down Expand Up @@ -199,4 +199,4 @@ def test_changing_order_of_concrete_terms_changes_meaning(self):
bob_parent = Fact(parent_sentence, terms=(bob, ann))
assert str(ann_parent).lower() == "the fact that Ann was Bob's parent".lower()
assert str(bob_parent).lower() == "the fact that Bob was Ann's parent".lower()
assert not ann_parent.means(bob_parent)
assert not ann_parent.means(bob_parent)

0 comments on commit 039f183

Please sign in to comment.