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
b952c3fc
Kaydet (Commit)
b952c3fc
authored
Kas 18, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed django.utils.unittest per deprecation timeline.
üst
ce78b954
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
29 deletions
+2
-29
unittest.py
django/utils/unittest.py
+0
-13
overview.txt
docs/topics/testing/overview.txt
+0
-14
setup.cfg
setup.cfg
+1
-1
.coveragerc
tests/.coveragerc
+1
-1
No files found.
django/utils/unittest.py
deleted
100644 → 0
Dosyayı görüntüle @
ce78b954
from
__future__
import
absolute_import
import
warnings
from
django.utils.deprecation
import
RemovedInDjango19Warning
warnings
.
warn
(
"django.utils.unittest will be removed in Django 1.9."
,
RemovedInDjango19Warning
,
stacklevel
=
2
)
try
:
from
unittest2
import
*
except
ImportError
:
from
unittest
import
*
docs/topics/testing/overview.txt
Dosyayı görüntüle @
b952c3fc
...
...
@@ -20,20 +20,6 @@ Writing tests
Django's unit tests use a Python standard library module: :mod:`unittest`. This
module defines tests using a class-based approach.
.. admonition:: unittest2
.. deprecated:: 1.7
Python 2.7 introduced some major changes to the ``unittest`` library,
adding some extremely useful features. To ensure that every Django project
could benefit from these new features, Django used to ship with a copy of
Python 2.7's ``unittest`` backported for Python 2.6 compatibility.
Since Django no longer supports Python versions older than 2.7,
``django.utils.unittest`` is deprecated. Simply use ``unittest``.
.. _unittest2: https://pypi.python.org/pypi/unittest2
Here is an example which subclasses from :class:`django.test.TestCase`,
which is a subclass of :class:`unittest.TestCase` that runs each test inside a
transaction to provide isolation::
...
...
setup.cfg
Dosyayı görüntüle @
b952c3fc
...
...
@@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
install-script = scripts/rpm-install.sh
[flake8]
exclude=build,.git,./django/utils/
unittest.py,./django/utils/
lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,./tests/.env,./xmlrunner,./tests/test_*.py
exclude=build,.git,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,./tests/.env,./xmlrunner,./tests/test_*.py
ignore=E123,E128,E265,E501,W601
max-line-length = 119
...
...
tests/.coveragerc
Dosyayı görüntüle @
b952c3fc
[run]
omit = */django/contrib/*/tests*,*/django/
utils/unittest*,*/django/
core/servers/fastcgi.py,*/django/utils/autoreload.py
omit = */django/contrib/*/tests*,*/django/core/servers/fastcgi.py,*/django/utils/autoreload.py
[report]
ignore_errors = True
...
...
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