We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32874c commit ffeb341Copy full SHA for ffeb341
tests/unit/test_panel_client.py
@@ -51,12 +51,14 @@ def test___start_panels___stop_panel_1_without_reset___enumerate_has_both_panels
51
}
52
53
54
-def test___get_unset_value_raises_exception(fake_panel_channel: grpc.Channel) -> None:
+def test___get_unset_value___raises_exception(fake_panel_channel: grpc.Channel) -> None:
55
client = create_panel_client(fake_panel_channel)
56
57
- with pytest.raises(Exception):
+ with pytest.raises(grpc.RpcError) as exc_info:
58
client.get_value("panel1", "unset_id")
59
60
+ assert exc_info.value.code() == grpc.StatusCode.NOT_FOUND
61
+
62
63
def test___try_get_unset_value___returns_not_found(fake_panel_channel: grpc.Channel) -> None:
64
0 commit comments