Skip to content

Commit

Permalink
Change error type
Browse files Browse the repository at this point in the history
  • Loading branch information
p-rial committed Aug 31, 2021
1 parent 8075b15 commit 821cb1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/client/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def test_get_data_source_success(pyband_client):


def test_get_data_source_invalid(pyband_client):
with pytest.raises(grpc.RpcError):
with pytest.raises(ValueError):
pyband_client.get_data_source(-1)


Expand All @@ -577,7 +577,7 @@ def test_get_oracle_script_success(pyband_client):


def test_get_oracle_script_invalid(pyband_client):
with pytest.raises(grpc.RpcError):
with pytest.raises(ValueError):
pyband_client.get_oracle_script(-1)


Expand Down Expand Up @@ -649,7 +649,7 @@ def test_get_request_by_id_not_found(pyband_client):


def test_get_request_by_id_invalid(pyband_client):
with pytest.raises(grpc.RpcError):
with pytest.raises(ValueError):
pyband_client.get_request_by_id(-1)


Expand Down

0 comments on commit 821cb1e

Please sign in to comment.