This commit is contained in:
danamir
2020-12-04 13:09:55 +03:00
commit fab8c223bf
6 changed files with 461 additions and 0 deletions

16
tests.py Normal file
View File

@@ -0,0 +1,16 @@
#!flask/bin/python
import unittest
import os
from app import app
class BasicTestCase(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
def test_main_page(self):
response = self.app.get('/api/v1.0/manual', content_type='html/text')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()