Skip to content

Commit ea70da4

Browse files
authored
Don't test using a file in docs/ (#3102)
2 parents e27b307 + 1e4a507 commit ea70da4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,9 @@ def test_expand_args(monkeypatch):
704704
monkeypatch.setenv("CLICK_TEST", "hello")
705705
assert "hello" in click.utils._expand_args(["$CLICK_TEST"])
706706
assert "pyproject.toml" in click.utils._expand_args(["*.toml"])
707-
assert os.path.join("docs", "conf.py") in click.utils._expand_args(["**/conf.py"])
707+
assert os.path.join("tests", "conftest.py") in click.utils._expand_args(
708+
["**/conftest.py"]
709+
)
708710
assert "*.not-found" in click.utils._expand_args(["*.not-found"])
709711
# a bad glob pattern, such as a pytest identifier, should return itself
710712
assert click.utils._expand_args(["test.py::test_bad"])[0] == "test.py::test_bad"

0 commit comments

Comments
 (0)