Skip to content

Commit

Permalink
yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Nov 4, 2024
1 parent 6262c66 commit cb73f4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/python/pants/backend/tools/yamllint/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ resource(name="lockfile", source="yamllint.lock")

python_sources(dependencies=[":lockfile"])

python_tests(name="tests")
python_tests(
name="tests",
overrides={
"rules_integration_test.py": {
"tags": ["platform_specific_behavior"],
}
},
)
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def test_passing(rule_runner: RuleRunner) -> None:
assert_success(rule_runner)


@pytest.mark.platform_specific_behavior
def test_failure(rule_runner: RuleRunner) -> None:
rule_runner.write_files({"test.yaml": REPEATED_KEY, "not_yaml": NOT_YAML})
assert_failure_with('duplication of key "this"', rule_runner)
Expand Down

0 comments on commit cb73f4c

Please sign in to comment.