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
8facb02f
Kaydet (Commit)
8facb02f
authored
Eyl 17, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved GIS migration test cleanup; refs #23504.
üst
33e817a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_operations.py
django/contrib/gis/tests/gis_migrations/test_operations.py
+2
-2
No files found.
django/contrib/gis/tests/gis_migrations/test_operations.py
Dosyayı görüntüle @
8facb02f
...
...
@@ -64,6 +64,7 @@ class OperationTests(TransactionTestCase):
operation
.
state_forwards
(
"gis"
,
new_state
)
with
connection
.
schema_editor
()
as
editor
:
operation
.
database_forwards
(
"gis"
,
editor
,
project_state
,
new_state
)
self
.
current_state
=
new_state
self
.
assertColumnExists
(
"gis_neighborhood"
,
"path"
)
# Test GeometryColumns when available
...
...
@@ -72,7 +73,6 @@ class OperationTests(TransactionTestCase):
GeometryColumns
.
objects
.
filter
(
**
{
GeometryColumns
.
table_name_col
():
"gis_neighborhood"
})
.
count
(),
2
)
self
.
current_state
=
new_state
def
test_remove_gis_field
(
self
):
"""
...
...
@@ -84,6 +84,7 @@ class OperationTests(TransactionTestCase):
operation
.
state_forwards
(
"gis"
,
new_state
)
with
connection
.
schema_editor
()
as
editor
:
operation
.
database_forwards
(
"gis"
,
editor
,
project_state
,
new_state
)
self
.
current_state
=
new_state
self
.
assertColumnNotExists
(
"gis_neighborhood"
,
"geom"
)
# Test GeometryColumns when available
...
...
@@ -92,4 +93,3 @@ class OperationTests(TransactionTestCase):
GeometryColumns
.
objects
.
filter
(
**
{
GeometryColumns
.
table_name_col
():
"gis_neighborhood"
})
.
count
(),
0
)
self
.
current_state
=
new_state
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