それぞれのテストケースの出力値を正しい書式に変更
This commit is contained in:
parent
f811038c02
commit
a6771be294
@ -142,7 +142,7 @@ class TestS3Client:
|
||||
"""
|
||||
with pytest.raises(Exception) as e:
|
||||
S3Client()
|
||||
assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'"
|
||||
assert e.value.args[0] == "S3Client.__init__() missing 1 required positional argument: 'bucket_name'"
|
||||
|
||||
|
||||
class TestConfigBucket:
|
||||
|
||||
@ -652,7 +652,8 @@ class TestSalesforceApiClient:
|
||||
|
||||
actual = sut.fetch_sf_data(soql)
|
||||
assert len(actual) > 0
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeSpecial"
|
||||
print(dict(actual[0]))
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
|
||||
def test_raise_create_instance_cause_auth_failed(self, monkeypatch):
|
||||
"""
|
||||
|
||||
@ -99,8 +99,9 @@ class TestCounterObject:
|
||||
sut = CounterObject()
|
||||
sut.describe(1)
|
||||
|
||||
print(str(e.value))
|
||||
# Expects
|
||||
assert str(e.value) == 'describe() takes 1 positional argument but 2 were given'
|
||||
assert str(e.value) == 'CounterObject.describe() takes 1 positional argument but 2 were given'
|
||||
|
||||
def test_increment(self) -> int:
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user