Skip to content

Commit

Permalink
fix: unitest TypeError: ModelBase object got multiple values for keyw…
Browse files Browse the repository at this point in the history
…ord argument 'is_active'
  • Loading branch information
Agus Makmun committed Dec 21, 2021
1 parent 76fc1bf commit 7d27795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion martor/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ def setUp(self):
username="user1",
email="user1@mail.com",
password="TestEgg@1234",
is_active=True,
)
self.user.is_active = True
self.user.save()
self.client.force_login(self.user)

def test_form(self):
Expand Down

0 comments on commit 7d27795

Please sign in to comment.