Example #1
0
 def on_session_start():
     try:
         1/0                     # pylint: disable=pointless-statement
     except ZeroDivisionError:
         slash.add_error()
Example #2
0
def test_1():
    global first_error
    first_error = slash.add_error('First error')
 def test_something(self, param, fixture):  # pylint: disable=unused-argument
     slash.add_error("Not supposed to reach here").mark_fatal()
Example #4
0
def test_3():
    for i in range(30):
        slash.add_error('sample error #{}'.format(i))
Example #5
0
def callback(**_):
    for i in range(100):
        slash.add_error('error #{}'.format(i))
Example #6
0
def test_3():
    for i in range(30):
        slash.add_error('sample error #{}'.format(i))