Skip to content

Commit efca918

Browse files
committed
added tests
1 parent 93ea966 commit efca918

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎tests/tests.py‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@ def create_app(self):
1919
self.client = test_app.test_client()
2020
return test_app
2121

22-
def test_one(self):
22+
def test_admin_bp(self):
2323
res = self.client.get('/admin/')
2424
self.assertIn('admin',res.get_data().lower())
2525

26+
def test_comment_bp(self):
27+
res = self.client.get('/comments/')
28+
self.assertIn('comment',res.get_data().lower())
29+
30+
def test_users_bp(self):
31+
res = self.client.get('/users/')
32+
self.assertIn('user',res.get_data().lower())
33+
34+
def test_have_all_bps(self):
35+
self.assertEquals(len(self.app.blueprints),3)
36+
37+

0 commit comments

Comments
 (0)