From af9b6986e355d7192d6286379e72163427dc5d90 Mon Sep 17 00:00:00 2001 From: Doppins Date: Tue, 6 Jun 2017 18:40:32 +0000 Subject: [PATCH 1/5] Upgrade dependency coverage to ==4.4 --- test_reqs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_reqs.txt b/test_reqs.txt index f384f8c..c73efcb 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -1,4 +1,4 @@ -coverage==4.2 +coverage==4.4 mock==2.0.0 flake8==3.0.2 django-jenkins==0.19.0 From 919736253d363d9cd417c5b2c49a26ce7e62493f Mon Sep 17 00:00:00 2001 From: Doppins Date: Tue, 6 Jun 2017 18:40:34 +0000 Subject: [PATCH 2/5] Upgrade dependency flake8 to ==3.3.0 --- test_reqs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_reqs.txt b/test_reqs.txt index c73efcb..09e2995 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -1,6 +1,6 @@ coverage==4.4 mock==2.0.0 -flake8==3.0.2 +flake8==3.3.0 django-jenkins==0.19.0 pep8==1.7.0 pyflakes==1.2.3 From 52297426133b6bccd2943f831474e28775f1f46b Mon Sep 17 00:00:00 2001 From: Doppins Date: Tue, 6 Jun 2017 18:40:35 +0000 Subject: [PATCH 3/5] Upgrade dependency django-jenkins to ==0.110.0 --- test_reqs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_reqs.txt b/test_reqs.txt index 09e2995..6014ae1 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -1,7 +1,7 @@ coverage==4.4 mock==2.0.0 flake8==3.3.0 -django-jenkins==0.19.0 +django-jenkins==0.110.0 pep8==1.7.0 pyflakes==1.2.3 statsd==3.2.1 From 6c934b84da1031de18ed24c9c74b6739f2a316e3 Mon Sep 17 00:00:00 2001 From: Doppins Date: Tue, 6 Jun 2017 18:40:36 +0000 Subject: [PATCH 4/5] Upgrade dependency pyflakes to ==1.5.0 --- test_reqs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_reqs.txt b/test_reqs.txt index 6014ae1..4f06fd4 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -3,6 +3,6 @@ mock==2.0.0 flake8==3.3.0 django-jenkins==0.110.0 pep8==1.7.0 -pyflakes==1.2.3 +pyflakes==1.5.0 statsd==3.2.1 django-statsd-mozilla==0.3.16 From 75551a7d82450e631722b65f8e21fe5d3915b6ba Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Tue, 6 Jun 2017 15:12:47 -0400 Subject: [PATCH 5/5] flake8 fixes --- djangowind/auth.py | 1 + djangowind/tests/test_auth.py | 1 + djangowind/views.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/djangowind/auth.py b/djangowind/auth.py index f3242b6..cd64aef 100644 --- a/djangowind/auth.py +++ b/djangowind/auth.py @@ -115,6 +115,7 @@ def get_saml_assertion(ticket): + """""" """""") + SAML_1_0_NS = 'urn:oasis:names:tc:SAML:1.0:' SAML_1_0_PROTOCOL_NS = '{' + SAML_1_0_NS + 'protocol' + '}' SAML_1_0_ASSERTION_NS = '{' + SAML_1_0_NS + 'assertion' + '}' diff --git a/djangowind/tests/test_auth.py b/djangowind/tests/test_auth.py index a03fac2..1cfd9f6 100644 --- a/djangowind/tests/test_auth.py +++ b/djangowind/tests/test_auth.py @@ -180,6 +180,7 @@ def test_validate_tr_success(self, mock_urlopen): "&service=https%3A//slank.ccnmtl.columbia.edu/accounts/" "caslogin/%3Fnext%3D/") + TR_SUCCESS = """ test_claim diff --git a/djangowind/views.py b/djangowind/views.py index be0cd87..47addf7 100644 --- a/djangowind/views.py +++ b/djangowind/views.py @@ -82,6 +82,8 @@ def login(request, template_name='registration/login.html', 'site': current_site, 'cas_base': get_cas_base(), }) + + login = never_cache(login)