From b40c1104a2a89d2b82f0ce28156c54f0089eb379 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Jun 2021 10:17:27 +0000 Subject: Use identity check for comparison to a singleton --- app/tests/test_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/tests/test_models.py') diff --git a/app/tests/test_models.py b/app/tests/test_models.py index c84df92..0beb3b9 100644 --- a/app/tests/test_models.py +++ b/app/tests/test_models.py @@ -4,6 +4,6 @@ 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 + assert user.get_role() is None + assert user.get_team() is None + assert user.is_paid() is None -- cgit v1.2.3