Skip to content

Commit c8014b4

Browse files
committed
Use fewer demo-mode highlights for non-browser asserts
1 parent aef7a42 commit c8014b4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,31 +2271,31 @@ def assert_downloaded_file(self, file):
22712271

22722272
def assert_true(self, expr, msg=None):
22732273
self.assertTrue(expr, msg=msg)
2274-
if self.demo_mode:
2275-
messenger_post = ("ASSERT TRUE: {%s}" % expr)
2274+
'''if self.demo_mode:
2275+
messenger_post = ("ASSERT TRUE (See code)")
22762276
js_utils.post_messenger_success_message(
2277-
self.driver, messenger_post, self.message_duration)
2277+
self.driver, messenger_post, self.message_duration)'''
22782278

22792279
def assert_false(self, expr, msg=None):
22802280
self.assertFalse(expr, msg=msg)
2281-
if self.demo_mode:
2282-
messenger_post = ("ASSERT FALSE: {%s}" % expr)
2281+
'''if self.demo_mode:
2282+
messenger_post = ("ASSERT FALSE (See code)")
22832283
js_utils.post_messenger_success_message(
2284-
self.driver, messenger_post, self.message_duration)
2284+
self.driver, messenger_post, self.message_duration)'''
22852285

22862286
def assert_equal(self, first, second, msg=None):
22872287
self.assertEqual(first, second, msg=msg)
2288-
if self.demo_mode:
2288+
'''if self.demo_mode:
22892289
messenger_post = ("ASSERT EQUAL: {%s == %s}" % (first, second))
22902290
js_utils.post_messenger_success_message(
2291-
self.driver, messenger_post, self.message_duration)
2291+
self.driver, messenger_post, self.message_duration)'''
22922292

22932293
def assert_not_equal(self, first, second, msg=None):
22942294
self.assertNotEqual(first, second, msg=msg)
2295-
if self.demo_mode:
2295+
'''if self.demo_mode:
22962296
messenger_post = ("ASSERT NOT EQUAL: {%s != %s}" % (first, second))
22972297
js_utils.post_messenger_success_message(
2298-
self.driver, messenger_post, self.message_duration)
2298+
self.driver, messenger_post, self.message_duration)'''
22992299

23002300
def assert_title(self, title):
23012301
""" Asserts that the web page title matches the expected title. """

0 commit comments

Comments
 (0)