Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
ffbee67f
Kaydet (Commit)
ffbee67f
authored
Eyl 09, 2017
tarafından
Luoxzhg
Kaydeden (comit)
Tim Graham
Eyl 09, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed some comments referring to a nonexistent TestClient class.
üst
8b5a2980
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
testcases.py
django/test/testcases.py
+3
-3
test_views.py
tests/auth_tests/test_views.py
+1
-1
No files found.
django/test/testcases.py
Dosyayı görüntüle @
ffbee67f
...
...
@@ -245,9 +245,9 @@ class SimpleTestCase(unittest.TestCase):
Assert that a response redirected to a specific URL and that the
redirect URL can be loaded.
Won't work for external links since it uses
TestClient to do a request
(use fetch_redirect_response=False to check such links without fetching
them).
Won't work for external links since it uses
the test client to do a
request (use fetch_redirect_response=False to check such links without
fetching
them).
"""
if
msg_prefix
:
msg_prefix
+=
": "
...
...
tests/auth_tests/test_views.py
Dosyayı görüntüle @
ffbee67f
...
...
@@ -641,7 +641,7 @@ class LoginTest(AuthViewsTestCase):
Makes sure that a login rotates the currently-used CSRF token.
"""
# Do a GET to establish a CSRF token
# T
estClient isn't used here as we're testing middleware, essentially
.
# T
he test client isn't used here as it's a test for middleware
.
req
=
HttpRequest
()
CsrfViewMiddleware
()
.
process_view
(
req
,
LoginView
.
as_view
(),
(),
{})
# get_token() triggers CSRF token inclusion in the response
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment