diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.py b/crates/typos-cli/tests/cmd/false-positives.in/sample.py index dcf674d..692ff28 100644 --- a/crates/typos-cli/tests/cmd/false-positives.in/sample.py +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.py @@ -1 +1,5 @@ +import os + from numpy.typing import NDArray # should work + +print(os.O_WRONLY) # should work diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index 324f41d..a582f88 100644 --- a/crates/typos-cli/tests/cmd/false-positives.toml +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -1,4 +1,12 @@ bin.name = "typos" stdin = "" -stdout = "" +stdout = """ +error: `WRONLY` should be `WRONGLY` + --> ./sample.py:5:12 + | +5 | print(os.O_WRONLY) # should work + | ^^^^^^ + | +""" stderr = "" +status.code = 2