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
088b30f4
Kaydet (Commit)
088b30f4
authored
Haz 24, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] refs #22487: Don't flush out data from before normal TestCases (spatialite)
üst
198ce307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
creation.py
django/contrib/gis/db/backends/spatialite/creation.py
+2
-11
No files found.
django/contrib/gis/db/backends/spatialite/creation.py
Dosyayı görüntüle @
088b30f4
...
...
@@ -41,7 +41,8 @@ class SpatiaLiteCreation(DatabaseCreation):
verbosity
=
max
(
verbosity
-
1
,
0
),
interactive
=
False
,
database
=
self
.
connection
.
alias
,
load_initial_data
=
False
)
load_initial_data
=
False
,
test_flush
=
True
)
# We then serialize the current state of the database into a string
# and store it on the connection. This slightly horrific process is so people
...
...
@@ -50,16 +51,6 @@ class SpatiaLiteCreation(DatabaseCreation):
if
serialize
:
self
.
connection
.
_test_serialized_contents
=
self
.
serialize_db_to_string
()
# We need to then do a flush to ensure that any data installed by
# custom SQL has been removed. The only test data should come from
# test fixtures, or autogenerated from post_migrate triggers.
# This has the side effect of loading initial data (which was
# intentionally skipped in the migrate).
call_command
(
'flush'
,
verbosity
=
max
(
verbosity
-
1
,
0
),
interactive
=
False
,
database
=
self
.
connection
.
alias
)
call_command
(
'createcachetable'
,
database
=
self
.
connection
.
alias
)
# Ensure a connection for the side effect of initializing the test database.
...
...
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