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
fbc467c2
Kaydet (Commit)
fbc467c2
authored
Şub 10, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Moved contrib.sitemaps tests out of contrib.
üst
d8341bf0
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
31 deletions
+27
-31
MANIFEST.in
MANIFEST.in
+0
-1
__init__.py
tests/sitemaps_tests/__init__.py
+0
-0
base.py
tests/sitemaps_tests/base.py
+4
-26
models.py
tests/sitemaps_tests/models.py
+16
-0
custom_sitemap.xml
tests/sitemaps_tests/templates/custom_sitemap.xml
+0
-0
custom_sitemap_index.xml
tests/sitemaps_tests/templates/custom_sitemap_index.xml
+0
-0
test_generic.py
tests/sitemaps_tests/test_generic.py
+2
-1
test_http.py
tests/sitemaps_tests/test_http.py
+2
-1
test_https.py
tests/sitemaps_tests/test_https.py
+1
-1
__init__.py
tests/sitemaps_tests/urls/__init__.py
+0
-0
http.py
tests/sitemaps_tests/urls/http.py
+2
-1
https.py
tests/sitemaps_tests/urls/https.py
+0
-0
No files found.
MANIFEST.in
Dosyayı görüntüle @
fbc467c2
...
...
@@ -30,6 +30,5 @@ recursive-include django/contrib/gis/tests/geoapp/fixtures *
recursive-include django/contrib/gis/tests/geogapp/fixtures *
recursive-include django/contrib/gis/tests/relatedapp/fixtures *
recursive-include django/contrib/sitemaps/templates *
recursive-include django/contrib/sitemaps/tests/templates *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
django/contrib/sitemaps/
tests/__init__.py
→
tests/sitemaps_
tests/__init__.py
Dosyayı görüntüle @
fbc467c2
File moved
django/contrib/sitemaps/
tests/base.py
→
tests/sitemaps_
tests/base.py
Dosyayı görüntüle @
fbc467c2
from
django.apps
import
apps
from
django.core.cache
import
cache
from
django.core.urlresolvers
import
reverse
from
django.db
import
models
from
django.test
import
TestCase
,
override_settings
from
django.test
import
TestCase
,
modify_settings
,
override_settings
from
.models
import
I18nTestModel
,
TestModel
class
TestModel
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
class
Meta
:
app_label
=
'sitemaps'
def
__unicode__
(
self
):
return
self
.
name
def
get_absolute_url
(
self
):
return
'/testmodel/
%
s/'
%
self
.
id
class
I18nTestModel
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
class
Meta
:
app_label
=
'sitemaps'
def
get_absolute_url
(
self
):
return
reverse
(
'i18n_testmodel'
,
args
=
[
self
.
id
])
@override_settings
(
ROOT_URLCONF
=
'django.contrib.sitemaps.tests.urls.http'
)
@modify_settings
(
INSTALLED_APPS
=
{
'append'
:
'django.contrib.sitemaps'
})
@override_settings
(
ROOT_URLCONF
=
'sitemaps_tests.urls.http'
)
class
SitemapTestsBase
(
TestCase
):
protocol
=
'http'
sites_installed
=
apps
.
is_installed
(
'django.contrib.sites'
)
...
...
tests/sitemaps_tests/models.py
0 → 100644
Dosyayı görüntüle @
fbc467c2
from
django.core.urlresolvers
import
reverse
from
django.db
import
models
class
TestModel
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
def
get_absolute_url
(
self
):
return
'/testmodel/
%
s/'
%
self
.
id
class
I18nTestModel
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
def
get_absolute_url
(
self
):
return
reverse
(
'i18n_testmodel'
,
args
=
[
self
.
id
])
django/contrib/sitemaps/
tests/templates/custom_sitemap.xml
→
tests/sitemaps_
tests/templates/custom_sitemap.xml
Dosyayı görüntüle @
fbc467c2
File moved
django/contrib/sitemaps/
tests/templates/custom_sitemap_index.xml
→
tests/sitemaps_
tests/templates/custom_sitemap_index.xml
Dosyayı görüntüle @
fbc467c2
File moved
django/contrib/sitemaps/
tests/test_generic.py
→
tests/sitemaps_
tests/test_generic.py
Dosyayı görüntüle @
fbc467c2
...
...
@@ -2,7 +2,8 @@ from __future__ import unicode_literals
from
django.test
import
override_settings
from
.base
import
SitemapTestsBase
,
TestModel
from
.base
import
SitemapTestsBase
from
.models
import
TestModel
@override_settings
(
ABSOLUTE_URL_OVERRIDES
=
{})
...
...
django/contrib/sitemaps/
tests/test_http.py
→
tests/sitemaps_
tests/test_http.py
Dosyayı görüntüle @
fbc467c2
...
...
@@ -15,7 +15,8 @@ from django.utils.deprecation import RemovedInDjango20Warning
from
django.utils.formats
import
localize
from
django.utils.translation
import
activate
,
deactivate
from
.base
import
SitemapTestsBase
,
TestModel
from
.base
import
SitemapTestsBase
from
.models
import
TestModel
class
HTTPSitemapTests
(
SitemapTestsBase
):
...
...
django/contrib/sitemaps/
tests/test_https.py
→
tests/sitemaps_
tests/test_https.py
Dosyayı görüntüle @
fbc467c2
...
...
@@ -8,7 +8,7 @@ from django.utils.deprecation import RemovedInDjango20Warning
from
.base
import
SitemapTestsBase
@override_settings
(
ROOT_URLCONF
=
'
django.contrib.sitemaps.
tests.urls.https'
)
@override_settings
(
ROOT_URLCONF
=
'
sitemaps_
tests.urls.https'
)
class
HTTPSSitemapTests
(
SitemapTestsBase
):
protocol
=
'https'
...
...
django/contrib/sitemaps/
tests/urls/__init__.py
→
tests/sitemaps_
tests/urls/__init__.py
Dosyayı görüntüle @
fbc467c2
File moved
django/contrib/sitemaps/
tests/urls/http.py
→
tests/sitemaps_
tests/urls/http.py
Dosyayı görüntüle @
fbc467c2
...
...
@@ -3,11 +3,12 @@ from datetime import date, datetime
from
django.conf.urls
import
url
from
django.conf.urls.i18n
import
i18n_patterns
from
django.contrib.sitemaps
import
GenericSitemap
,
Sitemap
,
views
from
django.contrib.sitemaps.tests.base
import
I18nTestModel
,
TestModel
from
django.http
import
HttpResponse
from
django.utils
import
timezone
from
django.views.decorators.cache
import
cache_page
from
..models
import
I18nTestModel
,
TestModel
class
SimpleSitemap
(
Sitemap
):
changefreq
=
"never"
...
...
django/contrib/sitemaps/
tests/urls/https.py
→
tests/sitemaps_
tests/urls/https.py
Dosyayı görüntüle @
fbc467c2
File moved
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