From 293224e977bb996033092cabe18d668b3f9b1497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Br=C3=A4nnlund?= Date: Thu, 1 Feb 2024 15:09:20 +0100 Subject: [PATCH] fix: Replace deprecated argument in pytest_report_header hook (#323) --- src/pytest_selenium/pytest_selenium.py | 2 +- src/pytest_selenium/safety.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pytest_selenium/pytest_selenium.py b/src/pytest_selenium/pytest_selenium.py index e83e5c1..44fbe7f 100644 --- a/src/pytest_selenium/pytest_selenium.py +++ b/src/pytest_selenium/pytest_selenium.py @@ -235,7 +235,7 @@ def pytest_configure(config): config._capabilities = capabilities -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): driver = config.getoption("driver") if driver is not None: return "driver: {0}".format(driver) diff --git a/src/pytest_selenium/safety.py b/src/pytest_selenium/safety.py index 813d01b..8205652 100644 --- a/src/pytest_selenium/safety.py +++ b/src/pytest_selenium/safety.py @@ -36,7 +36,7 @@ def pytest_configure(config): ) -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): base_url = config.getoption("base_url") sensitive_url = config.getoption("sensitive_url") msg = "sensitiveurl: {0}".format(sensitive_url)