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
eb406aa6
Kaydet (Commit)
eb406aa6
authored
Şub 09, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.8.x] Silenced deprecation warning in refs #24287 test.
üst
9744529c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tests.py
tests/app_loading/tests.py
+7
-4
No files found.
tests/app_loading/tests.py
Dosyayı görüntüle @
eb406aa6
...
...
@@ -2,14 +2,16 @@ from __future__ import unicode_literals
import
os
import
sys
import
warnings
from
django.apps
import
apps
from
django.core.exceptions
import
ImproperlyConfigured
from
django.db
import
models
from
django.test
import
TestCase
from
django.test.utils
import
extend_sys_path
from
django.utils._os
import
upath
from
django.utils
import
six
from
django.utils._os
import
upath
from
django.utils.deprecation
import
RemovedInDjango19Warning
class
EggLoadingTest
(
TestCase
):
...
...
@@ -98,6 +100,7 @@ class GetModelsTest(TestCase):
'Ensure that its module, "models_that_do_not_live_in_an_app", '
'is located inside an installed app.'
)
with
self
.
assertRaisesMessage
(
ImproperlyConfigured
,
msg
):
declare_model_outside_app
()
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
'ignore'
,
category
=
RemovedInDjango19Warning
)
with
self
.
assertRaisesMessage
(
ImproperlyConfigured
,
msg
):
declare_model_outside_app
()
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