Skip to content

Commit

Permalink
Expand the error message for the default kernelspec being in the kern…
Browse files Browse the repository at this point in the history
…elspecs list
  • Loading branch information
ojarjur committed May 5, 2023
1 parent ca56cf0 commit 408cc88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/services/kernelspecs/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def is_default_kernelspec(s):
return s["name"] == default

assert any(is_sample_kernelspec(s) for s in specs.values()), specs
assert any(is_default_kernelspec(s) for s in specs.values()), specs
assert any(
is_default_kernelspec(s) for s in specs.values()
), f"Default kernel name {default} not found in {specs}"


async def test_get_kernelspecs(jp_rename_kernels, jp_fetch, jp_kernelspecs):
Expand Down

0 comments on commit 408cc88

Please sign in to comment.