From 7ffc4f27431e0434819a47f85d61b877d346700d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 4 Jun 2021 15:45:19 +0530 Subject: add test for models --- app/tests/test_models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/tests/test_models.py diff --git a/app/tests/test_models.py b/app/tests/test_models.py new file mode 100644 index 0000000..513f332 --- /dev/null +++ b/app/tests/test_models.py @@ -0,0 +1,11 @@ +from app.models import User + +def test_usermodel(app,client): + user = User( + first_name="John", + email="test@example.com", + password="pass") + assert user.full_name == "John None" + assert user.get_role() == None + assert user.get_team() == None + assert user.is_paid() == None \ No newline at end of file -- cgit v1.2.3