From 821cb1e34664a33f1e73884bffaa522ccd9c58ab Mon Sep 17 00:00:00 2001 From: prial Date: Tue, 31 Aug 2021 18:05:37 +0700 Subject: [PATCH] Change error type --- tests/client/client_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/client/client_test.py b/tests/client/client_test.py index 8fb0b23..0e4d036 100644 --- a/tests/client/client_test.py +++ b/tests/client/client_test.py @@ -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) @@ -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) @@ -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)