UT: Rename BogusClass to BogusSerializableClass

This commit is contained in:
vakarisz 2022-07-12 16:13:18 +03:00
parent 18a7a4ec1a
commit 88c331d932
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ def test_api_encoder_tuple():
assert json.dumps(expected_tuple) == json.dumps(bogus_tuple, cls=APIEncoder) assert json.dumps(expected_tuple) == json.dumps(bogus_tuple, cls=APIEncoder)
class BogusClass(IJSONSerializable): class BogusSerializableClass(IJSONSerializable):
def __init__(self, a): def __init__(self, a):
self.a = a self.a = a
@ -89,6 +89,6 @@ class BogusClass(IJSONSerializable):
def test_api_encoder_json_serializable(): def test_api_encoder_json_serializable():
bogus_data = {"target": [BogusClass("macky")]} bogus_data = {"target": [BogusSerializableClass("macky")]}
expected_result = {"target": [{"wacky": "macky"}]} expected_result = {"target": [{"wacky": "macky"}]}
assert json.dumps(expected_result) == json.dumps(bogus_data, cls=APIEncoder) assert json.dumps(expected_result) == json.dumps(bogus_data, cls=APIEncoder)