Commit 3214bd30a4c21c0610565244f65c51e87149d2bf
1 parent
6d7208fd
Exists in
master
and in
4 other branches
Fixed tests with templatetags
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com>
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
colab/search/tests/test_templatetags.py
| ... | ... | @@ -18,17 +18,17 @@ class SearchTemplateTagsTest(TestCase): |
| 18 | 18 | def test_get_search_preview_templates_with_user(self): |
| 19 | 19 | self.set_mock_value("user") |
| 20 | 20 | include_path = get_search_preview_templates(self.model_indexed_mock) |
| 21 | - self.assertEqual(include_path, self.template_path.format("accounts", | |
| 21 | + self.assertEqual(include_path, self.template_path.format("search", | |
| 22 | 22 | "user")) |
| 23 | 23 | |
| 24 | 24 | def test_get_search_preview_templates_with_thread(self): |
| 25 | 25 | self.set_mock_value("thread") |
| 26 | 26 | include_path = get_search_preview_templates(self.model_indexed_mock) |
| 27 | 27 | self.assertEqual(include_path, |
| 28 | - self.template_path.format("superarchives", "thread")) | |
| 28 | + self.template_path.format("search", "thread")) | |
| 29 | 29 | |
| 30 | 30 | def test_get_search_preview_templates_with_plugin(self): |
| 31 | 31 | self.set_mock_value("plugin_model") |
| 32 | 32 | include_path = get_search_preview_templates(self.model_indexed_mock) |
| 33 | - self.assertEqual(include_path, self.template_path.format("plugin", | |
| 34 | - "model")) | |
| 33 | + self.assertEqual(include_path, | |
| 34 | + self.template_path.format("search", "plugin_model")) | ... | ... |