MCPcopy
hub / github.com/pallets/flask / login

Method login

examples/tutorial/tests/conftest.py:51–54  ·  view source on GitHub ↗
(self, username="test", password="test")

Source from the content-addressed store, hash-verified

49 self._client = client
50
51 def login(self, username="test", password="test"):
52 return self._client.post(
53 "/auth/login", data={"username": username, "password": password}
54 )
55
56 def logout(self):
57 return self._client.get("/auth/logout")

Callers 10

test_indexFunction · 0.80
test_author_requiredFunction · 0.80
test_exists_requiredFunction · 0.80
test_createFunction · 0.80
test_updateFunction · 0.80
test_deleteFunction · 0.80
test_loginFunction · 0.80
test_logoutFunction · 0.80

Calls 1

postMethod · 0.45

Tested by

no test coverage detected