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
056be435
Kaydet (Commit)
056be435
authored
Ock 20, 2014
tarafından
Shai Berger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed two test failures under Oracle
üst
980eda01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
test_ordinary_fields.py
tests/invalid_models_tests/test_ordinary_fields.py
+6
-1
tests.py
tests/schema/tests.py
+2
-1
No files found.
tests/invalid_models_tests/test_ordinary_fields.py
Dosyayı görüntüle @
056be435
# -*- encoding: utf-8 -*-
from
__future__
import
unicode_literals
import
unittest
from
django.core.checks
import
Error
from
django.core.exceptions
import
ImproperlyConfigured
from
django.db
import
models
from
django.db
import
connection
,
models
from
.base
import
IsolatedModelsTestCase
class
AutoFieldTests
(
IsolatedModelsTestCase
):
def
test_valid_case
(
self
):
...
...
@@ -176,6 +179,8 @@ class CharFieldTests(IsolatedModelsTestCase):
]
self
.
assertEqual
(
errors
,
expected
)
@unittest.skipUnless
(
connection
.
vendor
==
'mysql'
,
"Test valid only for MySQL"
)
def
test_too_long_char_field_under_mysql
(
self
):
from
django.db.backends.mysql.validation
import
DatabaseValidation
...
...
tests/schema/tests.py
Dosyayı görüntüle @
056be435
...
...
@@ -182,7 +182,8 @@ class SchemaTests(TransactionTestCase):
# Ensure the field is right afterwards
columns
=
self
.
column_classes
(
Author
)
self
.
assertEqual
(
columns
[
'surname'
][
0
],
"CharField"
)
self
.
assertEqual
(
columns
[
'surname'
][
1
][
6
],
False
)
self
.
assertEqual
(
columns
[
'surname'
][
1
][
6
],
connection
.
features
.
interprets_empty_strings_as_nulls
)
def
test_alter
(
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