Beispiel #1
0
    def make_assert_template(group_name, name, _template_dir):
        long_name = make_full_name(group_name, name)
        expected_dir = make_expected_dir(_template_dir)

        def assert_template(test_case):
            test_case.assert_template(group_name, long_name, _template_dir, expected_dir, should_stage=should_stage)

        return assert_template
Beispiel #2
0
    def make_assert_template(group_name, name, parent_input_dir):
        template_dir = os.path.join(parent_input_dir, name)
        long_name = make_full_name(group_name, name)
        expected_dir = make_expected_dir(template_dir)

        def assert_template(test_case):
            test_case.assert_template(name, long_name, template_dir, expected_dir)

        return assert_template