コード例 #1
0
    def __init__(self, *args: Any, **kwargs: Any) -> None:
        DiscoverRunner.__init__(self, *args, **kwargs)

        # `templates_rendered` holds templates which were rendered
        # in proper logical tests.
        self.templates_rendered: Set[str] = set()
        # `shallow_tested_templates` holds templates which were rendered
        # in `zerver.tests.test_templates`.
        self.shallow_tested_templates: Set[str] = set()
        template_rendered.connect(self.on_template_rendered)
コード例 #2
0
    def __init__(self, *args: Any, **kwargs: Any) -> None:
        DiscoverRunner.__init__(self, *args, **kwargs)

        # `templates_rendered` holds templates which were rendered
        # in proper logical tests.
        self.templates_rendered = set()  # type: Set[str]
        # `shallow_tested_templates` holds templates which were rendered
        # in `zerver.tests.test_templates`.
        self.shallow_tested_templates = set()  # type: Set[str]
        template_rendered.connect(self.on_template_rendered)
        self.database_id = random.randint(1, 10000)
コード例 #3
0
ファイル: test_runner.py プロジェクト: ampg99/zulip
    def __init__(self, *args, **kwargs):
        # type: (*Any, **Any) -> None
        DiscoverRunner.__init__(self, *args, **kwargs)

        # `templates_rendered` holds templates which were rendered
        # in proper logical tests.
        self.templates_rendered = set()  # type: Set[str]
        # `shallow_tested_templates` holds templates which were rendered
        # in `zerver.tests.test_templates`.
        self.shallow_tested_templates = set()  # type: Set[str]
        template_rendered.connect(self.on_template_rendered)
コード例 #4
0
ファイル: test_runner.py プロジェクト: joydeep1701/zulip
    def __init__(self, *args: Any, **kwargs: Any) -> None:
        DiscoverRunner.__init__(self, *args, **kwargs)

        # `templates_rendered` holds templates which were rendered
        # in proper logical tests.
        self.templates_rendered = set()  # type: Set[str]
        # `shallow_tested_templates` holds templates which were rendered
        # in `zerver.tests.test_templates`.
        self.shallow_tested_templates = set()  # type: Set[str]
        template_rendered.connect(self.on_template_rendered)
        self.database_id = random.randint(1, 10000)
コード例 #5
0
 def __init__(self, on_run_suite):
     django.setup()
     DiscoverRunner.__init__(self)
     self.on_run_suite = on_run_suite
コード例 #6
0
ファイル: test_runner.py プロジェクト: bgupta/zulip
 def __init__(self, *args, **kwargs):
     DiscoverRunner.__init__(self, *args, **kwargs)
コード例 #7
0
 def __init__(self, on_run_suite):
     django.setup()
     DiscoverRunner.__init__(self)
     self.on_run_suite = on_run_suite
コード例 #8
0
 def __init__(self, *args, **kwargs):
     DiscoverRunner.__init__(self, *args, **kwargs)