We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9762c commit 8d151daCopy full SHA for 8d151da
src/moin/apps/frontend/_tests/test_frontend.py
@@ -330,6 +330,22 @@ def test_recoverpass(self):
330
def test_login(self):
331
self._test_view("frontend.login")
332
333
+ def test_login_post(self):
334
+ username = "moin"
335
+ password = "Xiwejr622"
336
+ create_user(username, password)
337
+ response = self._test_view_post(
338
+ "frontend.login",
339
+ form={
340
+ "login_username": username,
341
+ "login_password": password,
342
+ "login_nexturl": "http://localhost/Home",
343
+ "login_submit": "1",
344
+ },
345
+ data=("Redirecting...",),
346
+ )
347
+ assert response.location == "http://localhost/Home"
348
+
349
def test_logout(self):
350
self._test_view("frontend.logout", status="302 FOUND", data=["<!doctype html"])
351
0 commit comments