From e436f77d4374c7ae052f7aea095db0a550a4c01c Mon Sep 17 00:00:00 2001 From: Eli Bishop Date: Mon, 19 Aug 2019 16:26:44 -0700 Subject: [PATCH] rm obsolete pytest.raises parameter --- testing/test_feature_store_helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/test_feature_store_helpers.py b/testing/test_feature_store_helpers.py index 77ccb6f8..0e2da11b 100644 --- a/testing/test_feature_store_helpers.py +++ b/testing/test_feature_store_helpers.py @@ -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]) @@ -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]) @@ -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]) @@ -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):