В
Size: a a a
В
СС
СС
В

СС
СС
Р
BK
@pytest.fixture
def _fresh_access_token_by_pm():
with open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _pm_ai_id():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _mega_fixture():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as f1, open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt', 'r') as f2:
return f1.read(), f2.read()
E
MC
@pytest.fixture
def _fresh_access_token_by_pm():
with open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _pm_ai_id():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _mega_fixture():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as f1, open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt', 'r') as f2:
return f1.read(), f2.read()
S
ИС
BK
@feature('Delete comment')
def test_delete_comment(self, api_v2, _mega_fixture):
print(_mega_fixture[0])BK
BK
@pytest.fixture
def _mega_fixture():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as f1, open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt',
'r') as f2:
some_dict = {
'pm_id': f1.read(),
'access_token': f2.read()
}
return some_dict
@feature('Delete comment')
def test_delete_comment(self, api_v2, _mega_fixture):
print(_mega_fixture['pm_id'])BK
V
BK
@pytest.fixture
def fresh_ai_id():
with open('action_item_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def fresh_analytic_ai_id():
with open('analytic_action_item_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def fresh_comment_id():
with open('comment_ai_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def fresh_report_id():
with open('report_item_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def fresh_detached_sensor_id():
with open('detached_sensor_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _fresh_access_token():
with open(f'{GRABBED_DIR}/new_user_access_token.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _fresh_user_id():
with open(f'{GRABBED_DIR}/new_user_id.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _fresh_access_token_by_pm():
with open(f'{GRABBED_DIR}/new_user_access_token_by_pm.txt', 'r') as outfile:
return outfile.read()
@pytest.fixture
def _pm_ai_id():
with open(f'{GRABBED_DIR}/pm_ai_id.txt', 'r') as outfile:
return outfile.read()
V