それぞれのテストケースの出力値を正しい書式に変更

This commit is contained in:
mori.k 2025-01-29 15:46:48 +09:00
parent f811038c02
commit a6771be294
3 changed files with 5 additions and 3 deletions

View File

@ -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:

View File

@ -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):
"""

View File

@ -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:
"""