СС
Size: a a a
СС
BK
BK
СС
СС
СС
BK
def successfully_exported(self, csv_name):
if path.exists(csv_name):
print(f'File exists: {csv_name}')
# os.remove(csv_name)
else:
# raise FileNotFoundError(f'File with name {csv_name} not found')
raise FileNotFoundError(os.listdir)
СС
СС
BK
BK
СС
СС
E TimeoutError: successfully_exported timeout in 10sec with exception: "File with name detached-sensors-09-28-2020.csv not found"
FileNotFoundErrorBK
FileNotFoundErrorBK
def pytest_exception_interact():
try:
with allure.step('Screenshot'):
last_screenshot = browser.config.last_screenshot
allure.attach.file(
name='screenshot',
source=last_screenshot,
attachment_type=allure.attachment_type.PNG,
)
except TypeError:
# TODO refactor
pass
СС
Н
СС
S
S