async def test_session_expired(self, async_populated_api): credentials = async_populated_api.credentials credentials.password = PASSWORD credentials.session_id = "abc123" test_api = API.from_credentials(credentials) users = await test_api.get_async("User") assert len(users) >= 1
def test_session_expired(self, async_populated_api): credentials = async_populated_api.credentials credentials.password = PASSWORD credentials.session_id = 'abc123' test_api = API.from_credentials(credentials, loop=async_populated_api.loop) users = run(test_api.get_async('User'), loop=async_populated_api.loop) assert len(users) >= 1
async def test_api_from_credentials(self, async_populated_api): new_api = API.from_credentials(async_populated_api.credentials) users = await new_api.get_async("User") assert len(users) >= 1
def test_api_from_credentials(self, async_populated_api): new_api = API.from_credentials(async_populated_api.credentials, loop=async_populated_api.loop) users = run(new_api.get_async('User'), loop=async_populated_api.loop) assert len(users) >= 1