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
f22177a9
Kaydet (Commit)
f22177a9
authored
Nis 08, 2014
tarafından
Huu Nguyen
Kaydeden (comit)
Tim Graham
Nis 08, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Refs #21230 -- removed direct settings manipulation from signed cookies tests
Backport of
b9bfcd82
from master
üst
2cb70131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
tests.py
tests/signed_cookies_tests/tests.py
+2
-9
No files found.
tests/signed_cookies_tests/tests.py
Dosyayı görüntüle @
f22177a9
...
...
@@ -2,10 +2,9 @@ from __future__ import unicode_literals
import
time
from
django.conf
import
settings
from
django.core
import
signing
from
django.http
import
HttpRequest
,
HttpResponse
from
django.test
import
TestCase
from
django.test
import
TestCase
,
override_settings
class
SignedCookieTest
(
TestCase
):
...
...
@@ -64,14 +63,8 @@ class SignedCookieTest(TestCase):
finally
:
time
.
time
=
_time
@override_settings
(
SECRET_KEY
=
b
'
\xe7
'
)
def
test_signed_cookies_with_binary_key
(
self
):
def
restore_secret_key
(
prev
):
settings
.
SECRET_KEY
=
prev
self
.
addCleanup
(
restore_secret_key
,
settings
.
SECRET_KEY
)
settings
.
SECRET_KEY
=
b
'
\xe7
'
response
=
HttpResponse
()
response
.
set_signed_cookie
(
'c'
,
'hello'
)
...
...
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