Skip to content

Allow getting locust files from http urls - #2595

Merged
cyberw merged 8 commits into
locustio:masterfrom
DennisKrone:remote-locustfile
Feb 11, 2024
Merged

cyberw merged 8 commits into
locustio:masterfrom
DennisKrone:remote-locustfile

Conversation

@DennisKrone

Copy link
Copy Markdown
Collaborator

-f will now accept http urls as locustfiles (for example from a remote git repo).

self.assertEqual("my_locust_file.py", options.locustfile)

def test_locustfile_from_url(self):
locustfiles = parse_locustfile_option(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not call parse_options instead? (as that tests more). Not a big issue though...

Comment thread locust/argument_parser.py Resolved
@cyberw
cyberw merged commit 41c15e7 into locustio:master Feb 11, 2024
@cyberw

cyberw commented Feb 11, 2024

Copy link
Copy Markdown
Collaborator

I wanna get 2.23 out there so I merged it :)

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.

2 participants