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

Add run_single_user to __all__ variable #2417

Merged

Conversation

tdadela
Copy link
Contributor

@tdadela tdadela commented Oct 10, 2023

run_single_user method added to __all__ variable.

In #1985 run_single_user function was created and was added to top __init__.py file in 68f1af3.
However, it wasn't added to __all__.

run_single_user is part of official API (https://docs.locust.io/en/stable/api.html#locust.debug.run_single_userl) and "from locust import run_single_user" statement is used in examples (e.g. /examples/debugging.py).
Currently, many linters show warnings like "'run_single_user' is not declared in __all__" which may confuse people and make them think that they use Locust incorrectly.

@cyberw cyberw merged commit 6ecccb8 into locustio:master Oct 11, 2023
13 of 14 checks passed
@tdadela tdadela deleted the add_run_single_user_to___all___variable branch October 13, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants