Skip to content

Conversation

@titusfortner
Copy link
Contributor

This matches the Java 1.1.0 code to limit options to only what is valid for the configuration

@titusfortner titusfortner added the python Python Bindings label Jul 10, 2021
@titusfortner titusfortner requested a review from joshmgrant July 10, 2021 00:35
except KeyError:
return None

def validateOptions(self, kwargs):

Choose a reason for hiding this comment

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

Looks like method needs to be moved up to be defined before __init__


def __init__(self, options=None, data_center='us-west', resolve_ip=False):
self.options = options if options else SauceOptions()
self.options = options if options else SauceOptions.chrome()

Choose a reason for hiding this comment

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

This is actually a bit better for being explicit, so good job here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python Bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants