Closed ShoobyDoo closed 3 months ago
The caveat to this was that I could not add docstring comments to the properties, and I think that is too much of a dealbreaker. I will keep the same convention as it was and instead write a better way to get object properties into the test method.
Currently there seems to be a ton of excess code with simple property objects that is inflating the code size uncessarily. This can be circumvented by using dataclasses. It also seems to be easier to create a dynamic test method as iterating over each property in the dataclass can be easily compared to the json object(s) returned by opgg.
An example of how much shorter an object can get:
Old game class
New game class