Skip to content

Commit d8db273

Browse files
run again
1 parent 39c6e63 commit d8db273

File tree

7 files changed

+4
-19
lines changed

7 files changed

+4
-19
lines changed

.github/workflows/l10n_smoke.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
REPORTABLE: true
103103
run: |
104104
mv ./ci_l10n_pyproject_headed.toml ./pyproject.toml;
105-
ls -la artifacts-mac/ 2>/dev/null || echo "File does not exist"
106105
echo "TEST_EXIT_CODE=0" >> $GITHUB_ENV
107106
echo "SCRIPT_EXIT_CODE=0" >> $GITHUB_ENV
108107
pipenv run python check_l10n_test_cases.py

conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@ def test_case():
313313

314314
def pytest_configure(config):
315315
# Check if run is "reportable": if it is on a never-reported Fx version
316-
logging.warning("Invoked with options:", config.invocation_params.args)
317-
logging.warning("Invoked with file paths:", config.args)
318-
logging.warning("Full invocation:", config.invocation_params)
319316
if os.environ.get("TESTRAIL_REPORT"):
320317
logging.warning("Checking to see if session would be reportable...")
321318
if os.environ.get("TASKCLUSTER_ROOT_URL") and os.environ.get("FX_EXECUTABLE"):

l10n_CM/Unified/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def region():
4747

4848
@pytest.fixture()
4949
def live_site():
50-
return os.environ.get("CM_SITE", "amazon")
50+
return os.environ.get("CM_SITE", "demo")
5151

5252

5353
@pytest.fixture()

l10n_CM/run_l10n.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,13 @@ def run_tests(reg, site, flg, all_tests):
8383
try:
8484
if len(all_tests) > 0:
8585
logging.info(f"Tests for {reg} region on {site} page.")
86-
logging.warning(f"Running the tests: {all_tests} with flags: {flg}")
8786
os.environ["CM_SITE"] = site
8887
os.environ["FX_REGION"] = reg
8988
subprocess.run(["pytest", *flg, *all_tests], check=True, text=True)
9089
else:
9190
logging.info(f"{reg} region on {site} site has no tests.")
9291
except subprocess.CalledProcessError as e:
9392
logging.warning(f"Test run failed. {e}")
94-
logging.warning(f"Exit Code: {e.returncode}")
9593
if os.environ.get("TEST_EXIT_CODE") == "0":
9694
with open(os.environ.get("GITHUB_OUTPUT"), "a") as f:
9795
f.write(f"TEST_EXIT_CODE={str(e.returncode)}\n")

modules/page_object_prefs.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,6 @@ def fill_and_save_cc_panel_information(
242242
"cc-name": credit_card_fill_information.name,
243243
}
244244

245-
# for field in fields:
246-
# self.actions.send_keys(fields[field] + Keys.TAB).perform()
247-
#
248-
# # Press tab again to navigate to the next field (this accounts for the second tab after the name field)
249-
# self.actions.send_keys(Keys.TAB).perform()
250-
# # Finally, press enter
251-
# self.actions.send_keys(Keys.ENTER).perform()
252-
253245
form_element = self.get_element("form-container")
254246
children = [
255247
x.get_attribute("id")

modules/testrail_integration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def mark_results(testrail_session: TestRail, test_results):
231231
"""For each type of result, and per run, mark tests to status in batches"""
232232
logging.info(f"mark results: object\n{test_results}")
233233
existing_results = {}
234-
for category in ["passed", "skipped", "blocked", "xfailed", "failed"]:
235-
logging.warning(f"Marking {category} results...: {test_results}.")
234+
# don't send update requests for skipped test cases
235+
for category in ["passed", "blocked", "xfailed", "failed"]:
236236
for run_id in test_results[category]:
237237
if not existing_results.get(run_id):
238238
existing_results[run_id] = testrail_session.get_test_results(run_id)
@@ -531,7 +531,6 @@ def collect_changes(testrail_session: TestRail, report):
531531
raise ValueError("Release reporting currently not supported")
532532

533533
metadata = None
534-
logging.warning(f"Metadata here {report.get('tests')}...")
535534
for test in report.get("tests"):
536535
if test.get("metadata"):
537536
metadata = test.get("metadata")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.pytest.ini_options]
22
generate_report_on_test = false
3-
addopts = "-vs --json-report --json-report-file report.json --html=report.html"
3+
addopts = "-vs --html=report.html"
44
log_cli = true
55
log_cli_level = "info"
66
markers = [

0 commit comments

Comments
 (0)