1👍
✅
Test methods in TestCase is not connected. So when test_login
works he does not see user from test_create_account
.
You need to create user before login in test_login
.
Source:stackexchange.com