コード例 #1
0
 def test_color_import(self):
     """> Read colors from a file."""
     result = colors.file("tests/test_files/test_file.json")
     self.assertEqual(result["colors"]["color0"], "#1F211E")
コード例 #2
0
 def test_color_import_no_wallpaper(self):
     """> Read colors from a file without a wallpaper."""
     result = colors.file("tests/test_files/test_file2.json")
     self.assertEqual(result["wallpaper"], "None")
コード例 #3
0
ファイル: test_colors.py プロジェクト: the404devs/pywal-kde
 def test_color_import_no_alpha(self):
     """> Read colors from a file without an alpha."""
     result = colors.file("tests/test_files/test_file2.json")
     self.assertEqual(result["alpha"], "100")