major redo of period totals function

This commit is contained in:
Mariano Ramon
2020-05-03 22:27:56 -03:00
parent c994745364
commit bc1a5370f2
3 changed files with 130 additions and 49 deletions

38
dmapp/tests/test_dmapp.py Normal file
View File

@@ -0,0 +1,38 @@
import os
import sys
import unittest
sys.path.append(os.path.abspath('../'))
from dmweb import create_app
class TestDeskMeter(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls):
pass
def setUp(self):
dmapp = create_app()
self.client = dmapp.test_client()
self.client.testing = True
def tearDown(self):
pass
# test method
def test_home_status_code(self):
result = self.client.get('/')
# assert the status code of the response
self.assertEqual(result.status_code, 200)
# runs the unit tests in the module
if __name__ == '__main__':
unittest.main()