More unit tests

This commit is contained in:
Raphael Michel
2015-01-11 18:56:47 +01:00
parent 59eac8987a
commit 3c09998894
6 changed files with 73 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import os
import sys
from django.test import LiveServerTestCase
from django.conf import settings
from selenium import webdriver
RUN_LOCAL = ('SAUCE_USERNAME' not in os.environ)
@@ -51,6 +52,10 @@ def on_platforms():
class BrowserTest(LiveServerTestCase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
settings.DEBUG = True
def setUp(self):
if RUN_LOCAL:
self.setUpLocal()