Skip to content

Instantly share code, notes, and snippets.

@andreastt
Last active December 19, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreastt/5875264 to your computer and use it in GitHub Desktop.
Save andreastt/5875264 to your computer and use it in GitHub Desktop.
nosetest -s --processes=3 parallel.py
from selenium import webdriver
class TestKlass(object):
_multiprocess_can_split_ = True
@classmethod
def setup_class(self):
self.driver = webdriver.Firefox()
@classmethod
def teardown_class(self):
self.driver.quit()
def test_one(self):
print(self)
self.driver.get("http://ulv.no")
def test_two(self):
self.driver.get("http://elg.no")
def test_three(self):
self.driver.get("http://sau.no")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment