fix tests
This commit is contained in:
parent
f0bb73e1e1
commit
a3af5bde2a
2 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,7 @@ class CommonPagesTestCase(TestCase):
|
||||||
def test_navbar_links(self):
|
def test_navbar_links(self):
|
||||||
content = self.client.get('.404.html') # a page that isnt home
|
content = self.client.get('.404.html') # a page that isnt home
|
||||||
links = content.find('ul', class_='navbar-nav').find_all('a')
|
links = content.find('ul', class_='navbar-nav').find_all('a')
|
||||||
self.assertEqual(len(links), 4)
|
self.assertEqual(len(links), 5)
|
||||||
for link in links:
|
for link in links:
|
||||||
element = self.get_children(link)
|
element = self.get_children(link)
|
||||||
self.assertEqual(link.attrs['href'], '/{}/'.format(element.lower()))
|
self.assertEqual(link.attrs['href'], '/{}/'.format(element.lower()))
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
NAVBAR_HEIGHT: $('#main-nav').height(),
|
NAVBAR_HEIGHT: $('#main-nav').height(),
|
||||||
SCROLL_SPEED: 750
|
SCROLL_SPEED: 750
|
||||||
|
|
Reference in a new issue