Fix tests for change in exception type
This commit is contained in:
@@ -58,7 +58,7 @@ def test_client():
|
||||
|
||||
req = client.foo_request()
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
req.baz = 1
|
||||
|
||||
def test_simple_client():
|
||||
@@ -118,7 +118,7 @@ def test_simple_client():
|
||||
with pytest.raises(ValueError):
|
||||
remote = client.foo2(i=5)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
remote = client.foo(baz=5)
|
||||
|
||||
def test_pipeline():
|
||||
|
||||
@@ -58,7 +58,7 @@ def test_client_context(capability):
|
||||
|
||||
req = client.foo_request()
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
req.baz = 1
|
||||
|
||||
def test_simple_client_context(capability):
|
||||
@@ -112,7 +112,7 @@ def test_simple_client_context(capability):
|
||||
with pytest.raises(ValueError):
|
||||
remote = client.foo2(i=5)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
remote = client.foo(baz=5)
|
||||
|
||||
def test_pipeline_context(capability):
|
||||
|
||||
@@ -59,7 +59,7 @@ def test_client(capability):
|
||||
|
||||
req = client.foo_request()
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
req.baz = 1
|
||||
|
||||
def test_simple_client(capability):
|
||||
@@ -113,7 +113,7 @@ def test_simple_client(capability):
|
||||
with pytest.raises(ValueError):
|
||||
remote = client.foo2(i=5)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
remote = client.foo(baz=5)
|
||||
|
||||
def test_pipeline(capability):
|
||||
|
||||
@@ -81,7 +81,7 @@ def test_builder_set(addressbook):
|
||||
|
||||
assert person.name == 'test'
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(AttributeError):
|
||||
person.foo = 'test'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user