Skip to content

Commit

Permalink
UPdate
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh committed Sep 16, 2024
1 parent 8851f72 commit da3aaaa
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions qc_openscenario/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ def args_entrypoint() -> argparse.Namespace:
return parser.parse_args()


def run_checks(config: Configuration, result: Result) -> None:
# 1. Run basic checks
checker_data = basic_checker.run_checks(config=config, result=result)

# 2. Run xml checks
schema_checker.run_checks(checker_data)

# 3. Run reference checks
reference_checker.run_checks(checker_data)

# 4. Run parameters checks
parameters_checker.run_checks(checker_data)

# 5. Run data_type checks
data_type_checker.run_checks(checker_data)


def main():
args = args_entrypoint()

Expand All @@ -56,20 +73,8 @@ def main():
result.get_checker_bundle_result(constants.BUNDLE_NAME).params.append(
input_param
)
# 1. Run basic checks
checker_data = basic_checker.run_checks(config=config, result=result)

# 2. Run xml checks
schema_checker.run_checks(checker_data)

# 3. Run reference checks
reference_checker.run_checks(checker_data)

# 4. Run parameters checks
parameters_checker.run_checks(checker_data)

# 5. Run data_type checks
data_type_checker.run_checks(checker_data)
run_checks(config, result)

result.write_to_file(
config.get_checker_bundle_param(
Expand Down

0 comments on commit da3aaaa

Please sign in to comment.