(rule_runner: RuleRunner)
| 266 | |
| 267 | |
| 268 | def test_validate_passed(rule_runner: RuleRunner) -> None: |
| 269 | write_validate_files( |
| 270 | api_spec_dir="my_dir", |
| 271 | api_spec_file="dummy.yaml", |
| 272 | contents="PASS", |
| 273 | rc=0, |
| 274 | rule_runner=rule_runner, |
| 275 | ) |
| 276 | |
| 277 | tgt = rule_runner.get_target( |
| 278 | Address("my_dir", target_name="t", relative_file_path="dummy.yaml") |
| 279 | ) |
| 280 | lint_result = run_st2_validate_api_spec(rule_runner, [tgt]) |
| 281 | assert lint_result.exit_code == 0 |
| 282 | assert lint_result.report == EMPTY_DIGEST |
| 283 | |
| 284 | |
| 285 | def test_validate_failed(rule_runner: RuleRunner) -> None: |
nothing calls this directly
no test coverage detected