mirror of
https://github.com/openai/codex.git
synced 2026-04-29 17:06:51 +00:00
fix: address coverage gap in argument-comment-lint
This commit is contained in:
@@ -103,6 +103,19 @@ class WrapperCommonTest(unittest.TestCase):
|
||||
],
|
||||
)
|
||||
|
||||
def test_default_lint_env_promotes_both_strict_lints(self) -> None:
|
||||
env: dict[str, str] = {}
|
||||
|
||||
wrapper_common.set_default_lint_env(env)
|
||||
|
||||
self.assertEqual(
|
||||
env["DYLINT_RUSTFLAGS"],
|
||||
"-D argument-comment-mismatch "
|
||||
"-D uncommented-anonymous-literal-argument "
|
||||
"-A unknown_lints",
|
||||
)
|
||||
self.assertEqual(env["CARGO_INCREMENTAL"], "0")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user