This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from selenium import webdriver | |
| import unittest | |
| import nose | |
| from nose.plugins.multiprocess import MultiProcess | |
| import new | |
| import json | |
| import httplib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Automatically adds your Selenium wiki name in case it's missing | |
| # Place in selenium/.git/hooks | |
| # chmod +x selenium/.git/hooks/commit-msg | |
| # Append 'export SELENIUM_WIKI_NAME="YourWikiName"' to your bashrc/zshrc | |
| echo "Checking commit message..." | |
| if [ -z "$(grep -e "^$SELENIUM_WIKI_NAME: " $1)" ]; then | |
| echo "Missing Wiki name in commit message, appending" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [2]: class C(object): | |
| ...: def hi(self, k, d=dict()): | |
| ...: d[k] = 1 | |
| ...: print d | |
| ...: | |
| In [3]: c = C() | |
| In [4]: c.hi(1) | |
| {1: 1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Setup and start Sauce Connect for your TravisCI build | |
| # This script requires your .travis.yml to include the following two private env variables: | |
| # SAUCE_USERNAME | |
| # SAUCE_ACCESS_KEY | |
| # Follow the steps at https://saucelabs.com/opensource/travis to set that up. | |
| # | |
| # Curl and run this script as part of your .travis.yml before_script section: | |
| # before_script: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import time | |
| import subprocess | |
| import tempfile | |
| import zipfile | |
| import urllib | |
| import logging |
OlderNewer