You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# test.pyimportaiounittestimportunittestimportgdclassTestDaily(aiounittest.AsyncTestCase):
@propertydefclient(self) ->gd.Client:
ifnothasattr(self, "_client"):
self._client=gd.Client()
returnself._clientasyncdeftest_get_daily(self):
daily=awaitself.client.get_daily()
# This was my idea to try and fix the problem it got the level but failed to parse it.classTestDailyWith22(aiounittest.AsyncTestCase):
@propertydefclient(self) ->gd.Client:
ifnothasattr(self, "_client"):
self._client=gd.Client(session=gd.Session(http=gd.HTTPClient(game_version=GameVersion(2,2), binary_version=RobTopVersion(4, 0))))
returnself._clientasyncdeftest_get_daily(self):
awaitself.client.get_daily()
if__name__=="__main__":
unittest.main()
Step 3
python test.py
If all was done correctly it throws this error no matter what even if there is supposed to be a new daily level out it still breaks. I cannot seem to decipher what was programmed for parsing the level data but even when moving the GameVersion to 2.2 it says it cannot parse the list of numbers and merely assumes it's an integer when it's not. gd.errors.MissingAccess: can not get level with ID: -1
The text was updated successfully, but these errors were encountered:
CallocGD
changed the title
function get_daily() not working. When Moving and when moving the GameVersion over to 2.2 the API Breaks
function get_daily() not working. When Moving the GameVersion over to 2.2 the API Breaks
Jul 29, 2024
@nekitdev I would also recommend you write a test-suite for gdpy as well as that you'll able to easily verify if or when something fails, however if you do not have the time to do so I would be more than happy to write more of these test-cases so that you will be able to confirm and fix these mistakes more easily.
Here's the steps to reproduce this bug
Step 1
pip install gd.py aiounittest
Step 2
Step 3
python test.py
If all was done correctly it throws this error no matter what even if there is supposed to be a new daily level out it still breaks. I cannot seem to decipher what was programmed for parsing the level data but even when moving the GameVersion to 2.2 it says it cannot parse the list of numbers and merely assumes it's an integer when it's not.
gd.errors.MissingAccess: can not get level with ID: -1
The text was updated successfully, but these errors were encountered: