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