allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [01/12] allura git commit: [#5940] ticket:866 updated tests for navigation
Date Mon, 07 Dec 2015 08:22:57 GMT
Repository: allura
Updated Branches:
  refs/heads/ib/5940 [created] c042a13d2


[#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/944ac534
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/944ac534
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/944ac534

Branch: refs/heads/ib/5940
Commit: 944ac5344763ceb3a2905ddb4456d71864deb946
Parents: c113dba
Author: DeV1doR <dev1dor@ukr.net>
Authored: Fri Dec 4 14:40:14 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Mon Dec 7 10:01:07 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/944ac534/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