Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed May 21, 2021
1 parent 685b31a commit 3634fd4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/wptrunner/wptrunner/tests/browsers/test_webkitgtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@ def domain_is_inside_certificate_list_cert(domain_to_find, webkitgtk_certificate
subdomains={"a", "b"},
not_subdomains={"x", "y"}) as env_config:

executor_args = get_executor_kwargs(None, None, env_config, None, None, **kwargs)
# We don't want to actually create a test environment; the get_executor_kwargs
# function only really wants an object with the config key

class MockEnvironment:
def __init__(self, config):
self.config = config

executor_args = get_executor_kwargs(None,
None,
MockEnvironment(env_config),
{},
**kwargs)

assert('capabilities' in executor_args)
assert('webkitgtk:browserOptions' in executor_args['capabilities'])
assert('certificates' in executor_args['capabilities']['webkitgtk:browserOptions'])
Expand Down

0 comments on commit 3634fd4

Please sign in to comment.