allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [09/15] allura git commit: [#5940] ticket:866 updated tests for navigation
Date Tue, 15 Dec 2015 12:32:07 GMT
[#5940] ticket:866 updated tests for navigation


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/9996885c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9996885c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9996885c

Branch: refs/heads/ib/5940a
Commit: 9996885c2c38d202cd9a9a912a4c3e0c5f69189a
Parents: e9572ec
Author: DeV1doR <dev1dor@ukr.net>
Authored: Fri Dec 4 14:40:14 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Tue Dec 15 13:19:26 2015 +0200

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_nav.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/9996885c/Allura/allura/tests/functional/test_nav.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_nav.py b/Allura/allura/tests/functional/test_nav.py
index c382941..a0fe530 100644
--- a/Allura/allura/tests/functional/test_nav.py
+++ b/Allura/allura/tests/functional/test_nav.py
@@ -17,13 +17,11 @@ class TestNavigation(TestController):
     def setUp(self):
         super(TestNavigation, self).setUp()
         self.logo_pattern = ('div', {'class': 'nav-logo'})
-        self.global_nav_pattent = ('nav', {'class': 'nav-left'})
+        self.global_nav_pattern = ('nav', {'class': 'nav-left'})
         self.nav_data = {
             "title": "Link Test", "url": "http://example.com"}
         self.logo_data = {
             "redirect_link": "/", "image_path": "test_image.png"}
-
-    def tearDown(self):
         g._Globals__shared_state.pop('global_nav', None)
         g._Globals__shared_state.pop('nav_logo', None)
 
@@ -36,7 +34,7 @@ class TestNavigation(TestController):
     def test_global_nav_links_present(self):
         with h.push_config(config, **self._set_config()):
             response = self.app.get('/')
-        nav_left = response.html.find(*self.global_nav_pattent)
+        nav_left = response.html.find(*self.global_nav_pattern)
         assert len(nav_left.findAll('a')) == 1
         assert nav_left.a.get('href') == self.nav_data['url']
         assert nav_left.a.text == self.nav_data['title']
@@ -45,7 +43,7 @@ class TestNavigation(TestController):
     def test_global_nav_links_absent(self, global_nav):
         with h.push_config(config, **self._set_config()):
             response = self.app.get('/')
-        nav_left = response.html.find(*self.global_nav_pattent)
+        nav_left = response.html.find(*self.global_nav_pattern)
         assert len(nav_left.findAll('a')) == 0
 
     def test_logo_absent_if_not_image_path(self):


Mime
View raw message