Adding screen to payment selenium tests

pull/1/head
Ubuntu 2012-01-26 17:44:00 +00:00
parent aa898cde32
commit cf3ff26306
1 changed files with 8 additions and 2 deletions

View File

@ -20,10 +20,14 @@ import time
from selenium import webdriver from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.ui import WebDriverWait
import logging import logging
import os
from decimal import Decimal as D from decimal import Decimal as D
import datetime import datetime
def setup_selenium():
# Set the display window for our xvfb
os.environ['DISPLAY'] = ':99'
def set_test_logging(): def set_test_logging():
# Setup debug logging to our console so we can watch # Setup debug logging to our console so we can watch
@ -95,6 +99,7 @@ class PledgeTest(TestCase):
# This is an empty array where we will store any verification errors # This is an empty array where we will store any verification errors
# we find in our tests # we find in our tests
setup_selenium()
self.selenium = webdriver.Firefox() self.selenium = webdriver.Firefox()
set_test_logging() set_test_logging()
@ -191,6 +196,7 @@ class AuthorizeTest(TestCase):
# This is an empty array where we will store any verification errors # This is an empty array where we will store any verification errors
# we find in our tests # we find in our tests
setup_selenium()
self.selenium = webdriver.Firefox() self.selenium = webdriver.Firefox()
set_test_logging() set_test_logging()