Skip to content

Instantly share code, notes, and snippets.

@klrmn
Created August 16, 2012 22:36
Show Gist options
  • Save klrmn/3374256 to your computer and use it in GitHub Desktop.
Save klrmn/3374256 to your computer and use it in GitHub Desktop.
snippet
no_proxy_json = r'{"avoid-proxy":true}'
if options.run_everywhere:
browsers = [
('--platform=LINUX --browsername=firefox --browserver=13 --capabilities=' + no_proxy_json + ' ', 'linux_firefox_13'),
('--platform=LINUX --browsername=opera --browserver=12 ', 'linux_opera_12'),
('--platform=MAC --browsername=firefox --browserver=14 --capabilities=' + no_proxy_json + ' ', 'mac_firefox_14'),
('--platform=VISTA --browsername=chrome --capabilities=' + no_proxy_json + ' ', 'vista_chrome'),
('--platform=VISTA --browsername=firefox --browserver=13 --capabilities=' + no_proxy_json + ' ', 'vista_firefox_13'),
('--platform=VISTA --browsername="internet explorer" --browserver=9 ', 'vista_ie_9'),
('--platform=XP --browsername="internet explorer" --browserver=8 ' 'xp_ie_8'),
]
sauce = '--saucelabs=sauce.yaml '
else:
browsers = [('--driver=firefox ', 'local_firefox')]
sauce = ''
for browser in browsers:
if options.run_everywhere or options.run_all:
subprocess.call(env_py + ' -m py.test --destructive ' +
'--credentials=credentials.yaml ' + sauce + browser[0] +
' --webqatimeout=90 -m travis' +
' --webqareport=results/browserid/' + browser[1] + '.html' +
' --baseurl=http://' + host + '.123done.org -q browserid', shell=True)
@klrmn
Copy link
Author

klrmn commented Aug 16, 2012

self = <json.scanner.Scanner object at 0x101482cd0>, string = '{avoid-proxy:true}', idx = 0
context = <json.decoder.JSONDecoder object at 0x101492290>

E ValueError: Expecting property name: line 1 column 1 (char 1)

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