IP
Правда, у него такие приколы
Size: a a a
IP
ТЭ
S
ТЭ
S
BK
from something import feature
def make_feature():
i = 0
def _feature(step_name):
i += 1
return feature(f'{i}. {step_name}')
return _feature
class TestMy:
test_feature = make_feature()
@test_feature("Some step")
def test_1(self):
pass
@test_feature("Another step")
def test_2(self):
pass
BK
IS
BK
BK
IS
BK
IS
BK
BK
BK
@feature('Get general list watchlist')
def test_get_general_list_watchlist(self, api_v2):
res = api_v2.request(
method='get',
url=endpoints.WATCH_LIST + f'general-list{ACCESS_TOKEN_AMD}&limit=10'
)
assert res.status_code == 200
assert 'error' not in res.text
BK
S
S
BK
@numдобавить декоратор
@feature('Get general list watchlist')
def test_get_general_list_watchlist(self, api_v2):
res = api_v2.request(
method='get',
url=endpoints.WATCH_LIST + f'general-list{ACCESS_TOKEN_AMD}&limit=10'
)
assert res.status_code == 200
assert 'error' not in res.text
@num