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
a5152bb6
Kaydet (Commit)
a5152bb6
authored
Eki 27, 2012
tarafından
Anssi Kääriäinen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Marked a test as expectedFailure on Oracle
üst
c159d9ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
tests.py
tests/regressiontests/introspection/tests.py
+13
-2
No files found.
tests/regressiontests/introspection/tests.py
Dosyayı görüntüle @
a5152bb6
...
...
@@ -4,10 +4,15 @@ from functools import update_wrapper
from
django.db
import
connection
from
django.test
import
TestCase
,
skipUnlessDBFeature
,
skipIfDBFeature
from
django.utils
import
six
from
django.utils
import
six
,
unittest
from
.models
import
Reporter
,
Article
if
connection
.
vendor
==
'oracle'
:
expectedFailureOnOracle
=
unittest
.
expectedFailure
else
:
expectedFailureOnOracle
=
lambda
f
:
f
#
# The introspection module is optional, so methods tested here might raise
# NotImplementedError. This is perfectly acceptable behavior for the backend
...
...
@@ -89,7 +94,13 @@ class IntrospectionTests(six.with_metaclass(IgnoreNotimplementedError, TestCase)
[
datatype
(
r
[
1
],
r
)
for
r
in
desc
],
[
'IntegerField'
,
'CharField'
,
'CharField'
,
'CharField'
,
'BigIntegerField'
]
)
# Check also length of CharFields
# The following test fails on Oracle due to #17202 (can't correctly
# inspect the length of character columns).
@expectedFailureOnOracle
def
test_get_table_description_col_lengths
(
self
):
cursor
=
connection
.
cursor
()
desc
=
connection
.
introspection
.
get_table_description
(
cursor
,
Reporter
.
_meta
.
db_table
)
self
.
assertEqual
(
[
r
[
3
]
for
r
in
desc
if
datatype
(
r
[
1
],
r
)
==
'CharField'
],
[
30
,
30
,
75
]
...
...
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