intial commit of tests, documentation

This commit is contained in:
2022-11-05 13:53:37 -05:00
parent 9085c184bf
commit 852acafcae
115 changed files with 21599 additions and 1229 deletions

15
tests/test_team.py Normal file
View File

@@ -0,0 +1,15 @@
from tests.base import BaseModelTestCase
from unittest import TestCase
from pyteamsnap.models import Team
class TestTeam(BaseModelTestCase, TestCase):
__test__ = True
TestClass = Team
def test_data(self):
instance = super().test_data()
self.assertEqual(instance.id, self.TEAMSNAP_TEAM)
# assertDictContainsSubset is deprecated
# https://stackoverflow.com/a/59777678
self.assertEqual(instance.data["id"], self.TEAMSNAP_TEAM)