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
99f5ea9c
Kaydet (Commit)
99f5ea9c
authored
Haz 11, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi.
üst
5a3ae7e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
tests.py
tests/admin_views/tests.py
+2
-1
tests.py
tests/fixtures_regress/tests.py
+2
-0
tests.py
tests/serializers/tests.py
+2
-1
tests.py
tests/serializers_regress/tests.py
+1
-0
No files found.
tests/admin_views/tests.py
Dosyayı görüntüle @
99f5ea9c
...
@@ -28,7 +28,7 @@ from django.contrib.auth.models import Group, User, Permission
...
@@ -28,7 +28,7 @@ from django.contrib.auth.models import Group, User, Permission
from
django.contrib.contenttypes.models
import
ContentType
from
django.contrib.contenttypes.models
import
ContentType
from
django.forms.utils
import
ErrorList
from
django.forms.utils
import
ErrorList
from
django.template.response
import
TemplateResponse
from
django.template.response
import
TemplateResponse
from
django.test
import
TestCase
from
django.test
import
TestCase
,
skipUnlessDBFeature
from
django.test.utils
import
patch_logger
from
django.test.utils
import
patch_logger
from
django.test
import
override_settings
from
django.test
import
override_settings
from
django.utils
import
formats
from
django.utils
import
formats
...
@@ -1525,6 +1525,7 @@ class AdminViewsNoUrlTest(TestCase):
...
@@ -1525,6 +1525,7 @@ class AdminViewsNoUrlTest(TestCase):
self
.
client
.
get
(
'/test_admin/admin/logout/'
)
self
.
client
.
get
(
'/test_admin/admin/logout/'
)
@skipUnlessDBFeature
(
'can_defer_constraint_checks'
)
@override_settings
(
PASSWORD_HASHERS
=
(
'django.contrib.auth.hashers.SHA1PasswordHasher'
,),
@override_settings
(
PASSWORD_HASHERS
=
(
'django.contrib.auth.hashers.SHA1PasswordHasher'
,),
ROOT_URLCONF
=
"admin_views.urls"
)
ROOT_URLCONF
=
"admin_views.urls"
)
class
AdminViewDeletedObjectsTest
(
TestCase
):
class
AdminViewDeletedObjectsTest
(
TestCase
):
...
...
tests/fixtures_regress/tests.py
Dosyayı görüntüle @
99f5ea9c
...
@@ -411,6 +411,7 @@ class TestFixtures(TestCase):
...
@@ -411,6 +411,7 @@ class TestFixtures(TestCase):
%
widget
.
pk
%
widget
.
pk
)
)
@skipUnlessDBFeature
(
'supports_forward_references'
)
def
test_loaddata_works_when_fixture_has_forward_refs
(
self
):
def
test_loaddata_works_when_fixture_has_forward_refs
(
self
):
"""
"""
Regression for #3615 - Forward references cause fixtures not to load in MySQL (InnoDB)
Regression for #3615 - Forward references cause fixtures not to load in MySQL (InnoDB)
...
@@ -435,6 +436,7 @@ class TestFixtures(TestCase):
...
@@ -435,6 +436,7 @@ class TestFixtures(TestCase):
verbosity
=
0
,
verbosity
=
0
,
)
)
@skipUnlessDBFeature
(
'supports_forward_references'
)
@override_settings
(
FIXTURE_DIRS
=
[
os
.
path
.
join
(
_cur_dir
,
'fixtures_1'
),
@override_settings
(
FIXTURE_DIRS
=
[
os
.
path
.
join
(
_cur_dir
,
'fixtures_1'
),
os
.
path
.
join
(
_cur_dir
,
'fixtures_2'
)])
os
.
path
.
join
(
_cur_dir
,
'fixtures_2'
)])
def
test_loaddata_forward_refs_split_fixtures
(
self
):
def
test_loaddata_forward_refs_split_fixtures
(
self
):
...
...
tests/serializers/tests.py
Dosyayı görüntüle @
99f5ea9c
...
@@ -16,7 +16,7 @@ except ImportError:
...
@@ -16,7 +16,7 @@ except ImportError:
from
django.core
import
management
,
serializers
from
django.core
import
management
,
serializers
from
django.db
import
transaction
,
connection
from
django.db
import
transaction
,
connection
from
django.test
import
TestCase
,
TransactionTestCase
,
override_settings
from
django.test
import
TestCase
,
TransactionTestCase
,
override_settings
,
skipUnlessDBFeature
from
django.test.utils
import
Approximate
from
django.test.utils
import
Approximate
from
django.utils
import
six
from
django.utils
import
six
from
django.utils.six
import
StringIO
from
django.utils.six
import
StringIO
...
@@ -267,6 +267,7 @@ class SerializersTransactionTestBase(object):
...
@@ -267,6 +267,7 @@ class SerializersTransactionTestBase(object):
available_apps
=
[
'serializers'
]
available_apps
=
[
'serializers'
]
@skipUnlessDBFeature
(
'supports_forward_references'
)
def
test_forward_refs
(
self
):
def
test_forward_refs
(
self
):
"""
"""
Tests that objects ids can be referenced before they are
Tests that objects ids can be referenced before they are
...
...
tests/serializers_regress/tests.py
Dosyayı görüntüle @
99f5ea9c
...
@@ -402,6 +402,7 @@ if connection.features.allows_auto_pk_0:
...
@@ -402,6 +402,7 @@ if connection.features.allows_auto_pk_0:
# registered serializers are automatically tested.
# registered serializers are automatically tested.
@skipUnlessDBFeature
(
'can_defer_constraint_checks'
)
class
SerializerTests
(
TestCase
):
class
SerializerTests
(
TestCase
):
def
test_get_unknown_serializer
(
self
):
def
test_get_unknown_serializer
(
self
):
"""
"""
...
...
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