StrictDoc Documentation
tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py
Source file coverage
Path:
tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py
Lines:
23
Non-empty lines:
17
Non-empty lines covered with requirements:
17 / 17 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""
2
@relation(SDOC-SRS-155, scope=file)
3
"""
4
 
5
import os
6
 
7
from tests.end2end.e2e_case import E2ECase
8
from tests.end2end.server import SDocTestServer
9
 
10
path_to_this_test_file_folder = os.path.dirname(os.path.abspath(__file__))
11
 
12
 
13
class Test(E2ECase):
14
    def test(self):
15
        with SDocTestServer(
16
            input_path=path_to_this_test_file_folder
17
        ) as test_server:
18
            path_to_search = test_server.get_host_and_port() + "/search"
19
            self.open(path_to_search)
20
 
21
            self.assert_text(
22
                "The Search feature is not activated in the project config."
23
            )