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
c0102dc7
Kaydet (Commit)
c0102dc7
authored
Mar 28, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.8.x] Fixed skipping of gis_tests when dependencies not installed.
Backport of
ba1665ed
from master
üst
a70dea2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests.py
tests/gis_tests/maps/tests.py
+2
-1
No files found.
tests/gis_tests/maps/tests.py
Dosyayı görüntüle @
c0102dc7
...
...
@@ -4,7 +4,6 @@ from __future__ import unicode_literals
from
unittest
import
skipUnless
from
django.contrib.gis.geos
import
HAS_GEOS
from
django.contrib.gis.maps.google.overlays
import
GEvent
,
GOverlayBase
from
django.test
import
TestCase
from
django.test.utils
import
modify_settings
,
override_settings
from
django.utils.encoding
import
force_text
...
...
@@ -45,11 +44,13 @@ class GoogleMapsTest(TestCase):
self
.
assertIn
(
"En français"
,
google_map
.
scripts
)
def
test_gevent_html_safe
(
self
):
from
django.contrib.gis.maps.google.overlays
import
GEvent
event
=
GEvent
(
'click'
,
'function() {location.href = "http://www.google.com"}'
)
self
.
assertTrue
(
hasattr
(
GEvent
,
'__html__'
))
self
.
assertEqual
(
force_text
(
event
),
event
.
__html__
())
def
test_goverlay_html_safe
(
self
):
from
django.contrib.gis.maps.google.overlays
import
GOverlayBase
overlay
=
GOverlayBase
()
overlay
.
js_params
=
'"foo", "bar"'
self
.
assertTrue
(
hasattr
(
GOverlayBase
,
'__html__'
))
...
...
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