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
1c010ce4
Kaydet (Commit)
1c010ce4
authored
Eki 05, 2012
tarafından
Justin Bronn
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Skip `LayerMapRouterTest` if there are not multiple databases.
üst
c1b06c81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests.py
django/contrib/gis/tests/layermap/tests.py
+3
-0
No files found.
django/contrib/gis/tests/layermap/tests.py
Dosyayı görüntüle @
1c010ce4
from
__future__
import
absolute_import
import
os
import
unittest
from
copy
import
copy
from
decimal
import
Decimal
...
...
@@ -9,6 +10,7 @@ from django.contrib.gis.tests.utils import mysql
from
django.contrib.gis.utils.layermapping
import
(
LayerMapping
,
LayerMapError
,
InvalidDecimal
,
MissingForeignKey
)
from
django.db
import
router
from
django.conf
import
settings
from
django.test
import
TestCase
from
.models
import
(
...
...
@@ -308,6 +310,7 @@ class LayerMapRouterTest(TestCase):
def
tearDown
(
self
):
router
.
routers
=
self
.
old_routers
@unittest.skipUnless
(
len
(
settings
.
DATABASES
)
>
1
,
'multiple databases required'
)
def
test_layermapping_default_db
(
self
):
lm
=
LayerMapping
(
City
,
city_shp
,
city_mapping
)
self
.
assertEqual
(
lm
.
using
,
'other'
)
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