Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
82ae1559
Kaydet (Commit)
82ae1559
authored
Haz 10, 2016
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24759: Add test for IDLE syntax colorizoer.
üst
7082bc37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
test_colorizer.py
Lib/idlelib/idle_test/test_colorizer.py
+56
-0
No files found.
Lib/idlelib/idle_test/test_colorizer.py
0 → 100644
Dosyayı görüntüle @
82ae1559
'''Test idlelib/colorizer.py
Perform minimal sanity checks that module imports and some things run.
Coverage 22
%
.
'''
from
idlelib
import
colorizer
# always test import
from
test.support
import
requires
from
tkinter
import
Tk
,
Text
import
unittest
class
FunctionTest
(
unittest
.
TestCase
):
def
test_any
(
self
):
self
.
assertTrue
(
colorizer
.
any
(
'test'
,
(
'a'
,
'b'
)))
def
test_make_pat
(
self
):
self
.
assertTrue
(
colorizer
.
make_pat
())
class
ColorConfigTest
(
unittest
.
TestCase
):
@classmethod
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
Tk
()
cls
.
text
=
Text
(
cls
.
root
)
@classmethod
def
tearDownClass
(
cls
):
del
cls
.
text
cls
.
root
.
destroy
()
del
cls
.
root
def
test_colorizer
(
self
):
colorizer
.
color_config
(
self
.
text
)
class
ColorDelegatorTest
(
unittest
.
TestCase
):
@classmethod
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
Tk
()
@classmethod
def
tearDownClass
(
cls
):
cls
.
root
.
destroy
()
del
cls
.
root
def
test_colorizer
(
self
):
colorizer
.
ColorDelegator
()
if
__name__
==
'__main__'
:
unittest
.
main
(
verbosity
=
2
)
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