Beispiel #1
0
 async def test_save(api):
     """Tests the refresh method."""
     # Arrange
     app = InstalledAppEntity(api)
     # Act/Assert
     with pytest.raises(NotImplementedError):
         await app.save()
Beispiel #2
0
 async def test_refresh(api):
     """Tests the refresh method."""
     # Arrange
     app = InstalledAppEntity(api, installed_app_id=INSTALLED_APP_ID)
     # Act
     await app.refresh()
     # Assert
     assert app.app_id == APP_ID
Beispiel #3
0
 async def test_subscriptions(api):
     """Tests the subscriptions method."""
     # Arrange
     app = InstalledAppEntity(api, installed_app_id=INSTALLED_APP_ID)
     await app.refresh()
     # Act
     subscriptions = await app.subscriptions()
     # Assert
     assert len(subscriptions) == 3