def test_conform_multiline_str(self): """QLinearGradientConformer multiline qss to scss.""" c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.qss_multiline_str), self.css_str)
def test_conform_weird_whitespace_str(self): """QLinearGradientConformer weird whitespace qss to scss.""" c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.qss_weird_whitespace_str), self.css_str)
def test_does_not_affect_css_form(self): """QLinearGradientConformer no affect on css qlineargradient func.""" c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.css_str), self.css_str) self.assertEqual(c.to_qss(self.css_str), self.css_str)
def test_conform_rgba_str(self): """QLinearGradientConformer qss with vars to scss.""" c = QLinearGradientConformer() #self.assertEqual(c.to_scss(self.qss_rgba_str), self.css_rgba_str) print('TODO: QSS to SCSS with nested qlineargradient(rgba())')
def test_conform_vars_str(self): """QLinearGradientConformer qss with vars to scss.""" c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.qss_vars_str), self.css_vars_str)
def test_float_coords(self): c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.qss_float_coords_str), self.css_float_coords_str)
def test_incomplete_coords(self): """QLinearGradientConformer qss with not all 4 coordinates given.""" c = QLinearGradientConformer() self.assertEqual(c.to_scss(self.qss_incomplete_coords_str), self.css_incomplete_coords_str)