Skip to content

Commit ffeb341

Browse files
Mike ProsserMike Prosser
authored andcommitted
cleanup
1 parent a32874c commit ffeb341

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/test_panel_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ def test___start_panels___stop_panel_1_without_reset___enumerate_has_both_panels
5151
}
5252

5353

54-
def test___get_unset_value_raises_exception(fake_panel_channel: grpc.Channel) -> None:
54+
def test___get_unset_value___raises_exception(fake_panel_channel: grpc.Channel) -> None:
5555
client = create_panel_client(fake_panel_channel)
5656

57-
with pytest.raises(Exception):
57+
with pytest.raises(grpc.RpcError) as exc_info:
5858
client.get_value("panel1", "unset_id")
5959

60+
assert exc_info.value.code() == grpc.StatusCode.NOT_FOUND
61+
6062

6163
def test___try_get_unset_value___returns_not_found(fake_panel_channel: grpc.Channel) -> None:
6264
client = create_panel_client(fake_panel_channel)

0 commit comments

Comments
 (0)