From 7c2119578caf8a32ed15b65273805845d2e7f5e3 Mon Sep 17 00:00:00 2001 From: Timur Nurlygayanov Date: Mon, 18 Mar 2013 11:55:46 +0400 Subject: [PATCH] Added tests for REST API. Fixed issues with Web UI. --- dashboard/windc/templates/windc/_services_tabs.html | 1 - tests/selenium/test.py | 12 +++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dashboard/windc/templates/windc/_services_tabs.html b/dashboard/windc/templates/windc/_services_tabs.html index a58eac8..49b3d24 100644 --- a/dashboard/windc/templates/windc/_services_tabs.html +++ b/dashboard/windc/templates/windc/_services_tabs.html @@ -51,7 +51,6 @@ {% block modal-footer %} {% if wizard.steps.prev %} - {% else %} {% endif %} diff --git a/tests/selenium/test.py b/tests/selenium/test.py index 5279572..6c8389c 100644 --- a/tests/selenium/test.py +++ b/tests/selenium/test.py @@ -1,8 +1,10 @@ -import untitests +# -*- coding: utf-8 -*- + +import untitest2 from datacenters_page import DataCentersPage -class SanityTests(): +class SanityTests(unittest2.TestCase): def setUp(self): self.page = DataCentersPage() @@ -45,4 +47,8 @@ class SanityTests(): '1-recovery_password': 'AkvareL707!'} self.page.create_service('Active Directory', ad_parameters) - assert self.page.find_service(name) is not None \ No newline at end of file + assert self.page.find_service(name) is not None + + +if __name__ == '__main__': + unittest2.main() \ No newline at end of file