From 96948310f2bdee13e0f62b5b588ebc19fc0082a0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 6 Apr 2016 15:50:26 +0530 Subject: [PATCH] [test] [fix] --- frappe/print/doctype/print_format/test_print_format.py | 2 +- frappe/templates/styles/modern.css | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/print/doctype/print_format/test_print_format.py b/frappe/print/doctype/print_format/test_print_format.py index 2ce113543c..7ef44d90a1 100644 --- a/frappe/print/doctype/print_format/test_print_format.py +++ b/frappe/print/doctype/print_format/test_print_format.py @@ -23,7 +23,7 @@ class TestPrintFormat(unittest.TestCase): def test_print_user_modern(self): print_html = self.test_print_user("Modern") - self.assertTrue(re.findall('th {[\s]*background-color: #eee !important;[\s]*}', print_html)) + self.assertTrue("/* modern format: don't remove this line */" in print_html) def test_print_user_classic(self): print_html = self.test_print_user("Classic") diff --git a/frappe/templates/styles/modern.css b/frappe/templates/styles/modern.css index 462f75597a..a0ee287b5f 100644 --- a/frappe/templates/styles/modern.css +++ b/frappe/templates/styles/modern.css @@ -11,4 +11,6 @@ .print-format th { background-color: #eee !important; border-bottom: 0px !important; -} \ No newline at end of file +} + +/* modern format: don't remove this line */ \ No newline at end of file