Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Zungur committed Jul 3, 2024
1 parent 1022a7c commit 1644410
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_create_user(self):
response2 = signup(request2)
self.assertTrue("The resource was found at", response2)


class Create50LoginTest(unittest.TestCase):
def setUp(self):
self.rundb = util.get_rundb()
Expand Down Expand Up @@ -150,7 +151,8 @@ def test_login(self):
request2.params["password"] = "secret2"
login(request2)
self.assertTrue(
"Account pending for user: JoeUser2" in request2.session.pop_flash("error")[0]
"Account pending for user: JoeUser2"
in request2.session.pop_flash("error")[0]
)

# Approved user2, wrong password
Expand All @@ -174,7 +176,8 @@ def test_login(self):
self.rundb.userdb.save_user(user2)
response2 = login(request2)
self.assertTrue(
"Account blocked for user: JoeUser2" in request2.session.pop_flash("error")[0]
"Account blocked for user: JoeUser2"
in request2.session.pop_flash("error")[0]
)

# User2 is unblocked, correct password
Expand All @@ -191,6 +194,7 @@ def test_login(self):
"Invalid username: UserJoe2" in request2.session.pop_flash("error")[0]
)


class Create90APITest(unittest.TestCase):
def setUp(self):
self.rundb = util.get_rundb()
Expand Down

0 comments on commit 1644410

Please sign in to comment.