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

Fix various spelling errors using codespell #2687

Merged
merged 3 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def t(self):
with self.rest("POST", "/post", json={"foo": 1}) as resp:
1 / 0 # pylint: disable=pointless-statement

# response isnt even json, but RestUser will already have been marked it as a failure, so we dont have to do it again
# response isn't even json, but RestUser will already have been marked it as a failure, so we dont have to do it again
with self.rest("GET", "/") as resp:
pass

Expand Down
2 changes: 1 addition & 1 deletion examples/web_ui_cache_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class WebsiteUser(HttpUser):


# This example is based on the Varnish hit/miss headers (https://docs.varnish-software.com/tutorials/hit-miss-logging/).
# It could easly be customised for matching other caching sytems, CDN or custom headers.
# It could easily be customised for matching other caching systems, CDN or custom headers.
CACHE_HEADER = "X-Cache"

cache_stats = {}
Expand Down
2 changes: 1 addition & 1 deletion locust/input_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self):
self.cur_keys_length = 0
self.captured_chars = []
except pywintypes.error:
raise InitError("Terminal says its a tty but we couldnt enable line input. Keyboard input disabled.")
raise InitError("Terminal says its a tty but we couldn't enable line input. Keyboard input disabled.")
else:
raise InitError("Terminal was not a tty. Keyboard input disabled")

Expand Down
2 changes: 1 addition & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def is_valid_percentile(parameter):
children.append(child_pid)
logging.debug(f"Started child worker with pid #{child_pid}")
else:
# child is always a worker, even when it wasnt set on command line
# child is always a worker, even when it wasn't set on command line
options.worker = True
# remove options that dont make sense on worker
options.run_time = None
Expand Down
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def stop(self) -> None:
caller = inspect.getframeinfo(inspect.stack()[1][0])
logger.debug(f"Stopping all users (called from {caller.filename}:{caller.lineno})")
except Exception:
logger.debug("Stopping all users (couldnt determine where stop() was called from)")
logger.debug("Stopping all users (couldn't determine where stop() was called from)")
self.environment.events.test_stopping.fire(environment=self.environment)
self.final_user_classes_count = {**self.user_classes_count}
self.update_state(STATE_CLEANUP)
Expand Down
2 changes: 1 addition & 1 deletion locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def my_task(self):
def test_web_options(self):
port = get_free_tcp_port()
if platform.system() != "Darwin":
# MacOS only sets up the loopback interface for 127.0.0.1 and not for 127.*.*.*, so we cant test this
# MacOS only sets up the loopback interface for 127.0.0.1 and not for 127.*.*.*, so we can't test this
with mock_locustfile() as mocked:
proc = subprocess.Popen(
["locust", "-f", mocked.file_path, "--web-host", "127.0.0.2", "--web-port", str(port)],
Expand Down
2 changes: 1 addition & 1 deletion locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -3214,7 +3214,7 @@ def my_task(self):

def test_worker_sends_unrecognized_message_to_master(self):
"""
Validate master ignores message from worker when it cannot parse adddress info.
Validate master ignores message from worker when it cannot parse address info.
"""

class TestUser(User):
Expand Down
2 changes: 1 addition & 1 deletion locust/test/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def test_print_error_report(self):
headlines = info[1].replace("# ", "#").split()
# check number of columns in headlines vs table ascii separator
self.assertEqual(len(headlines), len(info[2].split("|")))
# table ascii seprators
# table ascii separators
self.assertEqual(info[2], info[-2])


Expand Down
Loading