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
4a251f8b
Kaydet (Commit)
4a251f8b
authored
May 30, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed AppRegistryNotReady error when running gis_tests in isolation on PostGIS.
Regression in
89053725
.
üst
c2eea61d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
runtests.py
tests/runtests.py
+8
-4
No files found.
tests/runtests.py
Dosyayı görüntüle @
4a251f8b
...
...
@@ -109,10 +109,6 @@ def setup(verbosity, test_labels, parallel):
bits
=
label
.
split
(
'.'
)[:
1
]
test_labels_set
.
add
(
'.'
.
join
(
bits
))
if
'gis_tests'
in
test_labels_set
and
not
connection
.
features
.
gis_enabled
:
print
(
'Aborting: A GIS database backend is required to run gis_tests.'
)
sys
.
exit
(
1
)
if
verbosity
>=
1
:
msg
=
"Testing against Django installed in '
%
s'"
%
os
.
path
.
dirname
(
django
.
__file__
)
max_parallel
=
default_test_processes
()
if
parallel
==
0
else
parallel
...
...
@@ -177,6 +173,14 @@ def setup(verbosity, test_labels, parallel):
# Load all the ALWAYS_INSTALLED_APPS.
django
.
setup
()
# It would be nice to put this validation earlier but it must come after
# django.setup() so that connection.features.gis_enabled can be accessed
# without raising AppRegistryNotReady when running gis_tests in isolation
# on some backends (e.g. PostGIS).
if
'gis_tests'
in
test_labels_set
and
not
connection
.
features
.
gis_enabled
:
print
(
'Aborting: A GIS database backend is required to run gis_tests.'
)
sys
.
exit
(
1
)
# Load all the test model apps.
test_modules
=
get_test_modules
()
...
...
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