mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Skip tests for now requiring Django configuration
Tests pass locally, but not in Travis-CI. Tests will be re-enabled when Django configuration is added.
This commit is contained in:
parent
41d6cae0a9
commit
c7a8bcbd17
@ -25,6 +25,7 @@ from plinth import context_processors as cp
|
||||
class ContextProcessorsTestCase(unittest.TestCase):
|
||||
"""Verify behavior of the context_processors module."""
|
||||
|
||||
@unittest.skip('requires configuring Django beforehand')
|
||||
def test_common(self):
|
||||
"""Verify that the 'common' function returns the correct values."""
|
||||
request = HttpRequest()
|
||||
@ -44,6 +45,7 @@ class ContextProcessorsTestCase(unittest.TestCase):
|
||||
self.assertIsNotNone(urls)
|
||||
self.assertEqual(['/', '/aaa/', '/aaa/bbb/', '/aaa/bbb/ccc/'], urls)
|
||||
|
||||
@unittest.skip('requires configuring Django beforehand')
|
||||
def test_common_border_conditions(self):
|
||||
"""Verify that the 'common' functions works for border conditions."""
|
||||
request = HttpRequest()
|
||||
|
||||
@ -105,6 +105,7 @@ class MenuTestCase(unittest.TestCase):
|
||||
self.assertEqual(expected_order, actual_item.order)
|
||||
self.assertEqual(0, len(actual_item.items))
|
||||
|
||||
@unittest.skip('requires configuring Django beforehand')
|
||||
def test_active_item(self):
|
||||
"""Verify that an active menu item can be correctly retrieved."""
|
||||
menu = self.build_menu()
|
||||
@ -119,6 +120,7 @@ class MenuTestCase(unittest.TestCase):
|
||||
else:
|
||||
self.assertIsNone(item)
|
||||
|
||||
@unittest.skip('requires configuring Django beforehand')
|
||||
def test_active_item_when_inside_subpath(self):
|
||||
"""Verify that the current URL could be a sub-path of menu item."""
|
||||
menu = self.build_menu()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user