| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from tracim_backend.tests import FunctionalTest |
||
| 2 | |||
| 3 | |||
| 4 | class TestFrontendEnabled(FunctionalTest): |
||
| 5 | config_section = 'functional_test_frontend_enabled' |
||
| 6 | |||
| 7 | def test_api__check_index_html_generated__ok_200__nominal_case(self): |
||
| 8 | res = self.testapp.get('/', status=200) |
||
| 9 | assert res.content_type == 'text/html' |
||
| 10 | |||
| 11 | |||
| 12 | class TestFrontendDisabled(FunctionalTest): |
||
| 13 | |||
| 14 | def test_api__check_index_html_generated__ok_200__nominal_case(self): |
||
| 15 | res = self.testapp.get('/', status=404) |
||
| 16 |