Files
QDarkStyleSheet/test/test_sass_compiler.py
T
Gonzalo Peña-Castellanos f84fff1711 PR: Add custom palette creation api, #161
* Add constants for file names and paths
* Reorganize utils and move image processing scripts
* Update palette file and move out of QSS folder into palette module
* Fix process_qrc script with new import paths
* Update scripts
* Fix patches for example
* Fix code and example custom palette
* Add simple test
2019-05-06 08:29:07 -03:00

34 lines
658 B
Python

#!python
# -*- coding: utf-8 -*-
"""Test the qtsass is compiling the SCSS files to QSS."""
# Standard library imports
import tempfile
# Local imports
from qdarkstyle.utils.scss import create_custom_qss, create_qss
def test_create_qss():
# Should not raise a CompileError
create_qss()
def test_create_custom_qss():
# Should not raise a CompileError
qss = create_custom_qss(
'MyAwesomePalette',
tempfile.mkdtemp(),
'#ff0000',
'#cc0000',
'#aa0000',
'#00ff00',
'#00cc00',
'#00aa00',
'#0000ff',
'#0000cc',
'#0000aa',
'0px',
)
assert qss