Skip to content

Commit cf387a9

Browse files
pylint issues
1 parent 373e890 commit cf387a9

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

tests/e2e-test/tests/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import os
21
import atexit
2+
import os
33
import io
4+
import logging
5+
46
from bs4 import BeautifulSoup
57
import pytest
6-
import logging
78
from config.constants import URL
89
from playwright.sync_api import sync_playwright
910
from py.xml import html # type: ignore
@@ -80,13 +81,15 @@ def pytest_runtest_makereport(item, call):
8081
else:
8182
report.description = ""
8283

84+
8385
def pytest_collection_modifyitems(items):
8486
for item in items:
8587
if hasattr(item, 'callspec'):
8688
prompt = item.callspec.params.get("prompt")
8789
if prompt:
8890
item._nodeid = prompt # This controls how the test name appears in the report
8991

92+
9093
def rename_duration_column():
9194
report_path = os.path.abspath("report.html") # or your report filename
9295
if not os.path.exists(report_path):
@@ -109,9 +112,11 @@ def rename_duration_column():
109112
with open(report_path, 'w', encoding='utf-8') as f:
110113
f.write(str(soup))
111114

115+
112116
# Register this function to run after everything is done
113117
atexit.register(rename_duration_column)
114118

119+
115120
# Add logs and docstring to report
116121
@pytest.hookimpl(hookwrapper=True)
117122
def pytest_runtest_makereport(item, call):

tests/e2e-test/tests/test_codegen_gp_tc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import logging
22
import time
3+
from pages.HomePage import HomePage
34

45
import pytest
56

6-
from pages.HomePage import HomePage
7-
87
logger = logging.getLogger(__name__)
98

109
# Define step-wise test actions for Golden Path

0 commit comments

Comments
 (0)