Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API tests are not using api_url command-line option, defaulting to config file value #481

Open
rohandudam opened this issue Oct 18, 2024 · 0 comments
Labels

Comments

@rohandudam
Copy link
Collaborator

I have identified a bug in our framework where the api tests are not using the value provided for the api_url command-line option. Instead, the tests always default to using the API URL from the configuration file base_url_conf.api_base_url.

Steps to reproduce:

  • Run any api test with the --api_url command-line option set to a different value than the one in the configuration file.
    pytest tests/test_api_example.py --api_url "https://qxf2.com"
  • Observe that the test uses the URL from the config file rather than the command-line value.

Expected behavior:
The test should prioritize and use the api_url provided through the command line option over the one from the configuration file.

Please investigate and fix this issue so that the framework properly utilizes the command-line option for the api_url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant