diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-04-09 17:33:06 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-04-09 17:33:06 +0200 |
| commit | 149b08a062fd002c3cb52bfe423ead23495ae8df (patch) | |
| tree | 6c77551fecc387cd435e17df8d005d1e18644415 /tests/unit/test_webapp.py | |
| parent | 9331fc28a8ac2f898a437d126ee59353f7f1bfde (diff) | |
| parent | f0fd9ad62864445bb87816b3282de4f293e1bf62 (diff) | |
Merge pull request #534 from kvch/preferences-refactor
new preferences handling
Diffstat (limited to 'tests/unit/test_webapp.py')
| -rw-r--r-- | tests/unit/test_webapp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 071c01df3..5697017d9 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -12,7 +12,6 @@ class ViewsTestCase(SearxTestCase): def setUp(self): webapp.app.config['TESTING'] = True # to get better error messages self.app = webapp.app.test_client() - webapp.default_theme = 'default' # set some defaults self.test_results = [ @@ -43,6 +42,11 @@ class ViewsTestCase(SearxTestCase): webapp.Search.search = search_mock + def get_current_theme_name_mock(override=None): + return 'default' + + webapp.get_current_theme_name = get_current_theme_name_mock + self.maxDiff = None # to see full diffs def test_index_empty(self): |