Skip to content

Commit

Permalink
test expects TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Apr 3, 2021
1 parent e322386 commit 21fa1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ anchorpoint>=0.4.4
apispec[validation]~=4.3.0
marshmallow>=3.10
legislice>=0.5.0
git+git://github.com/mscarey/nettlesome.git@8df5ccba7c700ced2b456aa2726e559717e22da6#egg=nettlesome
git+git://github.com/mscarey/nettlesome.git@c7665739d9eb60dccb3ad6ba48626f3e6d84d92d#egg=nettlesome
pint>=0.15
python-dotenv
python-slugify
Expand Down
4 changes: 2 additions & 2 deletions tests/test_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def test_new_context_non_generic_from_list_error(self, make_holding, watt_factor
[watt_factor["f1"], watt_factor["f7"], watt_factor["f2"]]
)

def test_cannot_change_context_with_dict(self, make_holding, make_predicate):
with pytest.raises(ValueError):
def test_cannot_change_context_with_predicates(self, make_holding, make_predicate):
with pytest.raises(TypeError):
make_holding["h1"].new_context({make_predicate["p1"]: make_predicate["p7"]})

def test_cannot_change_context_with_dict_and_terms(
Expand Down

0 comments on commit 21fa1d6

Please sign in to comment.