File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 22
33{% block metatitle %}Login | OpenSAFELY Airlock{% endblock metatitle %}
44
5- {% block breadcrumbs %}
6- {% url "home" as home_url %}
7-
8- {% #breadcrumbs %}
9- {% breadcrumb title="Home" url=home_url %}
10- {% breadcrumb title="Login" active=True %}
11- {% /breadcrumbs %}
12- {% endblock breadcrumbs %}
13-
145{% block content %}
156< section class ="flex flex-col max-w-2xl gap-y-4 ">
167 < h1 class ="text-3xl break-words font-bold text-slate-900 mt-2 md:mt-0 md:col-span-3 md:text-4xl ">
Original file line number Diff line number Diff line change 66pytestmark = pytest .mark .django_db
77
88
9+ def test_login_get (client ):
10+ response = client .get ("/login/" )
11+ assert response .status_code == 200
12+ assert "token_login_form" in response .context
13+
14+
915@mock .patch ("airlock.login_api.requests.post" , autospec = True )
1016def test_login (requests_post , client , settings ):
1117 settings .AIRLOCK_API_TOKEN = "test_api_token"
You can’t perform that action at this time.
0 commit comments