-
Notifications
You must be signed in to change notification settings - Fork 0
Sourcery refactored main branch #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ def chrome_options(): | |
| if not gpu: | ||
| _chrome_options.add_argument("--disable-gpu") | ||
| if window_size: | ||
| _chrome_options.add_argument("--window-size={}".format(window_size)) | ||
| _chrome_options.add_argument(f"--window-size={window_size}") | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| if headless: | ||
| _chrome_options.add_argument("--headless") | ||
| _chrome_options.add_argument("--load-images=no") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| def step_impl_1(context: PetStoreContext, method: str, status: str): | ||
| context.http_response = requests.request( | ||
| method=method, | ||
| url=context.base_url + "/v2/pet/findByStatus?status={}".format(status), | ||
| url=context.base_url + f"/v2/pet/findByStatus?status={status}", | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| ) | ||
|
|
||
|
|
||
|
|
@@ -33,7 +33,7 @@ def step_impl_4(context: PetStoreContext, method: str): | |
| raise ValueError("No value stored in context.pet_store_object.") | ||
| requests.request( | ||
| method=method, | ||
| url=context.base_url + "/v2/pet/{}".format(context.pet_store_object["id"]), | ||
| url=context.base_url + f'/v2/pet/{context.pet_store_object["id"]}', | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function
|
||
| ) | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function
after_scenariorefactored with the following changes:last-if-guard)use-fstring-for-formatting)