You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hello, I'm trying to run pytest-flask's live server in conjunction with selenium, but every one of my registered routes return a 404 status.
Both my app fixture and the live_server's app are the same (app == live_server.appreturns True, but I haven't checked out if they're the exact same object), and both app objects return the expected routes when calling app.url_map
It not only happens in testing: running the suite via a debugger and stopping the execution just before it fails, and visiting the app's routes in another tab or browser results in the same 404 status responses.
To Reproduce
I have the project open and available in github here, in the tests/login_example branch. Just start a virtual environment, install the requirements and run the following test:
pytest src/tests/system/guest/test_login.py
Expected behavior
The test passes.
Screenshots
Checking url_map in the debugger:
Firefox showing the error:
Environment (please complete the following information):
Describe the bug
Hello, I'm trying to run pytest-flask's live server in conjunction with selenium, but every one of my registered routes return a 404 status.
Both my app fixture and the live_server's app are the same (
app == live_server.app
returns True, but I haven't checked out if they're the exact same object), and both app objects return the expected routes when callingapp.url_map
It not only happens in testing: running the suite via a debugger and stopping the execution just before it fails, and visiting the app's routes in another tab or browser results in the same 404 status responses.
To Reproduce
I have the project open and available in github here, in the tests/login_example branch. Just start a virtual environment, install the requirements and run the following test:
pytest src/tests/system/guest/test_login.py
Expected behavior
The test passes.
Screenshots
Checking url_map in the debugger:
Firefox showing the error:
Environment (please complete the following information):
Additional context
The test proper:
My app fixture:
My selenium driver fixture:
The text was updated successfully, but these errors were encountered: