Skip to content

Commit 8306e0a

Browse files
JulienLabontemerwok
authored andcommitted
add unit tests for base user model
1 parent ac9f970 commit 8306e0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/test_models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
def test_baseemailuser_str(user0):
22
assert str(user0) == '[email protected]'
3+
4+
5+
def test_baseemailuser_get_short_name(user0):
6+
assert user0.get_short_name() == '[email protected]'
7+
8+
9+
def test_baseemailuser_natural_key(user0):
10+
assert user0.natural_key() == '[email protected]'

0 commit comments

Comments
 (0)