Skip to content

Commit

Permalink
Merge pull request #496 from qxf2/fix-api-url-cmd-issue
Browse files Browse the repository at this point in the history
Fixed issue related to `api_url` cli option usage
  • Loading branch information
rohandudam authored Nov 8, 2024
2 parents 9a6c357 + 5eba90f commit 004bddb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def test_mobile_obj(mobile_os_name, mobile_os_version, device_name, app_package,
{"status":"failed", "reason": "Exception occured"}}""")

@pytest.fixture
def test_api_obj(interactivemode_flag, testname, api_url=base_url_conf.api_base_url): # pylint: disable=redefined-outer-name
def test_api_obj(interactivemode_flag, testname, api_url): # pylint: disable=redefined-outer-name
"Return an instance of Base Page that knows about the third party integrations"
log_file = testname + '.log'
try:
Expand Down Expand Up @@ -692,8 +692,8 @@ def pytest_addoption(parser):
default=base_url_conf.ui_base_url,
help="The url of the application")
parser.addoption("--api_url",
dest="url",
default="https://cars-app.qxf2.com/",
dest="api_url",
default=base_url_conf.api_base_url,
help="The url of the api")
parser.addoption("--testrail_flag",
dest="testrail_flag",
Expand Down

0 comments on commit 004bddb

Please sign in to comment.