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
7056a4dd
Kaydet (Commit)
7056a4dd
authored
Kas 27, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Switched TestCase to SimpleTestCase in GIS tests.
üst
0f212db2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests.py
tests/gis_tests/geoadmin/tests.py
+2
-2
tests.py
tests/gis_tests/inspectapp/tests.py
+2
-2
No files found.
tests/gis_tests/geoadmin/tests.py
Dosyayı görüntüle @
7056a4dd
from
django.contrib.gis
import
admin
from
django.contrib.gis.geos
import
Point
from
django.test
import
TestCase
,
override_settings
from
django.test
import
Simple
TestCase
,
override_settings
from
.admin
import
UnmodifiableAdmin
from
.models
import
City
,
site
@override_settings
(
ROOT_URLCONF
=
'django.contrib.gis.tests.geoadmin.urls'
)
class
GeoAdminTest
(
TestCase
):
class
GeoAdminTest
(
Simple
TestCase
):
def
test_ensure_geographic_media
(
self
):
geoadmin
=
site
.
_registry
[
City
]
...
...
tests/gis_tests/inspectapp/tests.py
Dosyayı görüntüle @
7056a4dd
...
...
@@ -6,7 +6,7 @@ from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException
from
django.contrib.gis.utils.ogrinspect
import
ogrinspect
from
django.core.management
import
call_command
from
django.db
import
connection
,
connections
from
django.test
import
TestCase
,
skipUnlessDBFeature
from
django.test
import
SimpleTestCase
,
TestCase
,
skipUnlessDBFeature
from
django.test.utils
import
modify_settings
from
..test_data
import
TEST_DATA
...
...
@@ -59,7 +59,7 @@ class InspectDbTests(TestCase):
@modify_settings
(
INSTALLED_APPS
=
{
'append'
:
'django.contrib.gis'
},
)
class
OGRInspectTest
(
TestCase
):
class
OGRInspectTest
(
Simple
TestCase
):
expected_srid
=
'srid=-1'
if
GDAL_VERSION
<
(
2
,
2
)
else
''
maxDiff
=
1024
...
...
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