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
8482ab66
Kaydet (Commit)
8482ab66
authored
Ock 21, 2014
tarafından
Alex Gaynor
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed some stray newlines which caused flake8 issues
üst
fb862c87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
tests.py
tests/settings_tests/tests.py
+0
-3
No files found.
tests/settings_tests/tests.py
Dosyayı görüntüle @
8482ab66
...
@@ -408,7 +408,6 @@ class SecureProxySslHeaderTest(TestCase):
...
@@ -408,7 +408,6 @@ class SecureProxySslHeaderTest(TestCase):
self
.
assertEqual
(
req
.
is_secure
(),
True
)
self
.
assertEqual
(
req
.
is_secure
(),
True
)
class
IsOverriddenTest
(
TestCase
):
class
IsOverriddenTest
(
TestCase
):
def
test_configure
(
self
):
def
test_configure
(
self
):
s
=
LazySettings
()
s
=
LazySettings
()
...
@@ -416,7 +415,6 @@ class IsOverriddenTest(TestCase):
...
@@ -416,7 +415,6 @@ class IsOverriddenTest(TestCase):
self
.
assertTrue
(
s
.
is_overridden
(
'SECRET_KEY'
))
self
.
assertTrue
(
s
.
is_overridden
(
'SECRET_KEY'
))
def
test_module
(
self
):
def
test_module
(
self
):
settings_module
=
ModuleType
(
'fake_settings_module'
)
settings_module
=
ModuleType
(
'fake_settings_module'
)
settings_module
.
SECRET_KEY
=
'foo'
settings_module
.
SECRET_KEY
=
'foo'
...
@@ -429,7 +427,6 @@ class IsOverriddenTest(TestCase):
...
@@ -429,7 +427,6 @@ class IsOverriddenTest(TestCase):
finally
:
finally
:
del
sys
.
modules
[
'fake_settings_module'
]
del
sys
.
modules
[
'fake_settings_module'
]
def
test_override
(
self
):
def
test_override
(
self
):
self
.
assertFalse
(
settings
.
is_overridden
(
'TEMPLATE_LOADERS'
))
self
.
assertFalse
(
settings
.
is_overridden
(
'TEMPLATE_LOADERS'
))
with
override_settings
(
TEMPLATE_LOADERS
=
[]):
with
override_settings
(
TEMPLATE_LOADERS
=
[]):
...
...
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