From 6b5de66fc5adc3c62a92738e9f317c4b1335f838 Mon Sep 17 00:00:00 2001 From: Tiago Ferraz Date: Mon, 9 Mar 2015 16:14:50 -0300 Subject: Refactoring of fuctional tests The scenarios were updated to follow the conventions of gherkin steps. Removal of duplicated code. --- service/test/functional/features/environment.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'service/test/functional/features/environment.py') diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py index 5e93c840..5969120a 100644 --- a/service/test/functional/features/environment.py +++ b/service/test/functional/features/environment.py @@ -14,11 +14,11 @@ # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see . import logging -import time -from test.support.dispatcher.proxy import Proxy +from test.support.dispatcher.proxy import Proxy from test.support.integration import AppTestClient from selenium import webdriver + from pixelated.resources.features_resource import FeaturesResource @@ -50,10 +50,6 @@ def after_feature(context, feature): context.browser.quit() -def take_screenshot(context): - context.browser.save_screenshot('/tmp/screenshot.jpeg') - - def save_source(context): with open('/tmp/source.html', 'w') as out: out.write(context.browser.page_source.encode('utf8')) -- cgit v1.2.3