Private
Public Access
1
0

mocking sqlalchemy

This commit is contained in:
Sander Roosendaal
2019-01-03 12:32:24 +01:00
parent c006c0599a
commit 331b6c0049
4 changed files with 61 additions and 33 deletions

View File

@@ -91,8 +91,11 @@ class DjangoTestCase(TestCase, MockTestCase):
def _post_teardown(self):
TestCase._post_teardown(self)
MockTestCase.tearDown(self)
delete_strokedata(1)
# delete_strokedata(1)
def mocked_polar_notifications(*args, **kwargs):
return []
# to be done add polar mocks (for email processing)
def mocked_requests(*args, **kwargs):
with open('rowers/tests/testdata/c2jsonworkoutdata.txt','r') as infile: