We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933d9dc commit e4c0577Copy full SHA for e4c0577
1 file changed
tests/test_core_lookup.py
@@ -23,12 +23,14 @@ def test_get_default_params():
23
]
24
25
26
-def test_bad_name(name="nope"):
+def test_bad_name():
27
# Test that the appropriate exception is thrown
28
# when an invalid backend is given.
29
- with pytest.raises(ValueError, match=f"specified an invalid core: {name}"):
+ invalid_core = "bad_core"
30
+ expctd = f"specified an invalid core: {invalid_core}"
31
+ with pytest.raises(ValueError, match=expctd):
32
- @cachier(backend=name)
33
+ @cachier(backend=invalid_core)
34
def dummy_func():
35
pass
36
0 commit comments