Skip to content

implement class methods for SauceOptions #266

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

titusfortner
Copy link
Collaborator

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
@@ -130,8 +158,15 @@ def __getattr__(self, key):
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__

@@ -15,7 +15,7 @@
class SauceSession():

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.

2 participants