Skip to content

Commit

Permalink
rm obsolete pytest.raises parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Aug 19, 2019
1 parent c990266 commit e436f77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/test_feature_store_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_get_can_throw_exception(self, cached):
core = MockCore()
wrapper = make_wrapper(core, cached)
core.error = CustomError()
with pytest.raises(CustomError, message="expected exception"):
with pytest.raises(CustomError):
wrapper.get(THINGS, "key", lambda x: x)

@pytest.mark.parametrize("cached", [False, True])
Expand Down Expand Up @@ -204,7 +204,7 @@ def test_get_all_can_throw_exception(self, cached):
core = MockCore()
wrapper = make_wrapper(core, cached)
core.error = CustomError()
with pytest.raises(CustomError, message="expected exception"):
with pytest.raises(CustomError):
wrapper.all(THINGS)

@pytest.mark.parametrize("cached", [False, True])
Expand Down Expand Up @@ -255,7 +255,7 @@ def test_upsert_can_throw_exception(self, cached):
core = MockCore()
wrapper = make_wrapper(core, cached)
core.error = CustomError()
with pytest.raises(CustomError, message="expected exception"):
with pytest.raises(CustomError):
wrapper.upsert(THINGS, { "key": "x", "version": 1 })

@pytest.mark.parametrize("cached", [False, True])
Expand All @@ -281,7 +281,7 @@ def test_delete_can_throw_exception(self, cached):
core = MockCore()
wrapper = make_wrapper(core, cached)
core.error = CustomError()
with pytest.raises(CustomError, message="expected exception"):
with pytest.raises(CustomError):
wrapper.delete(THINGS, "x", 1)

def test_uncached_initialized_queries_state_only_until_inited(self):
Expand Down

0 comments on commit e436f77

Please sign in to comment.