Skip to content

Commit

Permalink
Correctly using pytest.raises
Browse files Browse the repository at this point in the history
  • Loading branch information
SpangleLabs committed Apr 3, 2020
1 parent 888c428 commit ea46a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/modules/dailys/fields/test_dailys_mood_field.py
Expand Up @@ -94,7 +94,7 @@ def test_create_from_input__no_static_data(hallo_getter, requests_mock):
# Try and create dailys field
with pytest.raises(modules.dailys.DailysException) as e:
DailysMoodField.create_from_input(evt, spreadsheet)
assert "mood field static data has not been set up on dailys system" in str(e).lower()
assert "mood field static data has not been set up on dailys system" in str(e.value).lower()


def test_trigger_morning_query(hallo_getter):
Expand Down

0 comments on commit ea46a81

Please sign in to comment.