Loading robot2doc/create_sols.py +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ def generate_new_clause(row, ref, spec, all_tests_root, commit_id, solspec, curr else: path = os.path.join(all_tests_root, solspec, current_folder, row["fln"]) suite = TestSuiteBuilder().build(path) lib.gen_api_suite(ref, suite, spec, current_folder, commit_id, solspec) lib.gen_api_suite(ref, row["title"], suite, spec, current_folder, commit_id, solspec) def load_spec_index(root_dir, base_spec): ''' Loading robot2doc/lib.py +3 −3 Original line number Diff line number Diff line Loading @@ -105,13 +105,13 @@ def generate_void_clause(sec_ref, title, spec, sol): spec.add_sub_heading_from_ref(str(title), sec_ref, config.DOC_SUITE_LEVEL) spec.add_void_paragraph() def gen_api_suite(sec_ref, suite, spec, workspace, commit_id, sol): def gen_api_suite(sec_ref, title, suite, spec, workspace, commit_id, sol): ''' Generates all tests in a Robot test suite (i.e .robot file). Generates Heading and a sub clause (heading + test description) for each test in the test suite. ''' print("++ Generating test suite: {} {} {}".format(sol, sec_ref, suite)) spec.add_sub_heading_from_ref(str(suite), sec_ref, config.DOC_SUITE_LEVEL) print("++ Generating test suite: {} {} {}".format(sol, sec_ref, title)) spec.add_sub_heading_from_ref(str(title), sec_ref, config.DOC_SUITE_LEVEL) for i in suite.tests: url = build_test_url(commit_id, sol, workspace, str(suite)+".robot") Loading Loading
robot2doc/create_sols.py +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ def generate_new_clause(row, ref, spec, all_tests_root, commit_id, solspec, curr else: path = os.path.join(all_tests_root, solspec, current_folder, row["fln"]) suite = TestSuiteBuilder().build(path) lib.gen_api_suite(ref, suite, spec, current_folder, commit_id, solspec) lib.gen_api_suite(ref, row["title"], suite, spec, current_folder, commit_id, solspec) def load_spec_index(root_dir, base_spec): ''' Loading
robot2doc/lib.py +3 −3 Original line number Diff line number Diff line Loading @@ -105,13 +105,13 @@ def generate_void_clause(sec_ref, title, spec, sol): spec.add_sub_heading_from_ref(str(title), sec_ref, config.DOC_SUITE_LEVEL) spec.add_void_paragraph() def gen_api_suite(sec_ref, suite, spec, workspace, commit_id, sol): def gen_api_suite(sec_ref, title, suite, spec, workspace, commit_id, sol): ''' Generates all tests in a Robot test suite (i.e .robot file). Generates Heading and a sub clause (heading + test description) for each test in the test suite. ''' print("++ Generating test suite: {} {} {}".format(sol, sec_ref, suite)) spec.add_sub_heading_from_ref(str(suite), sec_ref, config.DOC_SUITE_LEVEL) print("++ Generating test suite: {} {} {}".format(sol, sec_ref, title)) spec.add_sub_heading_from_ref(str(title), sec_ref, config.DOC_SUITE_LEVEL) for i in suite.tests: url = build_test_url(commit_id, sol, workspace, str(suite)+".robot") Loading