diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 15:45:19 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 15:45:19 +0530 |
commit | 7ffc4f27431e0434819a47f85d61b877d346700d (patch) | |
tree | 1c19810db2109af71e3e353b36a04a0c538a1b3d /app/tests | |
parent | ad3de666c83ac4b176258ee42804d0ef82e0e60b (diff) |
add test for models
Diffstat (limited to 'app/tests')
-rw-r--r-- | app/tests/test_models.py | 11 |
1 files changed, 11 insertions, 0 deletions
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 |