Skip to content

Commit 20db2e5

Browse files
PyLint issues
1 parent cf387a9 commit 20db2e5

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

tests/e2e-test/tests/conftest.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88
from config.constants import URL
99
from playwright.sync_api import sync_playwright
10-
from py.xml import html # type: ignore
10+
1111

1212
@pytest.fixture(scope="session")
1313
def login_logout():
@@ -43,6 +43,7 @@ def pytest_html_report_title(report):
4343

4444
log_streams = {}
4545

46+
4647
@pytest.hookimpl(tryfirst=True)
4748
def pytest_runtest_setup(item):
4849
# Prepare StringIO for capturing logs
@@ -104,7 +105,7 @@ def rename_duration_column():
104105
for th in headers:
105106
if th.text.strip() == 'Duration':
106107
th.string = 'Execution Time'
107-
#print("Renamed 'Duration' to 'Execution Time'")
108+
# print("Renamed 'Duration' to 'Execution Time'")
108109
break
109110
else:
110111
print("'Duration' column not found in report.")
@@ -118,11 +119,11 @@ def rename_duration_column():
118119

119120

120121
# Add logs and docstring to report
121-
@pytest.hookimpl(hookwrapper=True)
122-
def pytest_runtest_makereport(item, call):
123-
outcome = yield
124-
report = outcome.get_result()
125-
report.description = str(item.function.__doc__)
126-
os.makedirs("logs", exist_ok=True)
127-
extra = getattr(report, "extra", [])
128-
report.extra = extra
122+
# @pytest.hookimpl(hookwrapper=True)
123+
# def pytest_runtest_makereport(item, call):
124+
# outcome = yield
125+
# report = outcome.get_result()
126+
# report.description = str(item.function.__doc__)
127+
# os.makedirs("logs", exist_ok=True)
128+
# extra = getattr(report, "extra", [])
129+
# report.extra = extra

tests/e2e-test/tests/test_codegen_gp_tc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def _timed_translation(home):
2323
end = time.time()
2424
logger.info(f"Translation process for uploaded files took {end - start:.2f} seconds")
2525

26+
2627
@pytest.mark.parametrize("description, action", golden_path_steps, ids=[desc for desc, _ in golden_path_steps])
2728
def test_codegen_golden_path(login_logout, description, action, request):
2829
"""

0 commit comments

Comments
 (0)