Skip to content

Commit e4c0577

Browse files
committed
fix bad test name
1 parent 933d9dc commit e4c0577

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_core_lookup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ def test_get_default_params():
2323
]
2424

2525

26-
def test_bad_name(name="nope"):
26+
def test_bad_name():
2727
# Test that the appropriate exception is thrown
2828
# when an invalid backend is given.
29-
with pytest.raises(ValueError, match=f"specified an invalid core: {name}"):
29+
invalid_core = "bad_core"
30+
expctd = f"specified an invalid core: {invalid_core}"
31+
with pytest.raises(ValueError, match=expctd):
3032

31-
@cachier(backend=name)
33+
@cachier(backend=invalid_core)
3234
def dummy_func():
3335
pass
3436

0 commit comments

Comments
 (0)