MCPcopy Index your code
hub / github.com/StackStorm/st2 / test_validate_passed

Function test_validate_passed

pants-plugins/api_spec/rules_test.py:268–282  ·  view source on GitHub ↗
(rule_runner: RuleRunner)

Source from the content-addressed store, hash-verified

266
267
268def 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
285def test_validate_failed(rule_runner: RuleRunner) -> None:

Callers

nothing calls this directly

Calls 2

write_validate_filesFunction · 0.85

Tested by

no test coverage detected