Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
15
venv/Lib/site-packages/qtconsole/tests/test_styles.py
Normal file
15
venv/Lib/site-packages/qtconsole/tests/test_styles.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import unittest
|
||||
|
||||
from qtconsole.styles import dark_color, dark_style
|
||||
|
||||
|
||||
class TestStyles(unittest.TestCase):
|
||||
def test_dark_color(self):
|
||||
self.assertTrue(dark_color('#000000')) # black
|
||||
self.assertTrue(not dark_color('#ffff66')) # bright yellow
|
||||
self.assertTrue(dark_color('#80807f')) # < 50% gray
|
||||
self.assertTrue(not dark_color('#808080')) # = 50% gray
|
||||
|
||||
def test_dark_style(self):
|
||||
self.assertTrue(dark_style('monokai'))
|
||||
self.assertTrue(not dark_style('default'))
|
Loading…
Add table
Add a link
Reference in a new issue