Skip to content

Commit 1e4a507

Browse files
committed
Don't test with a file in docs/
It may not be present when building
1 parent 309ce91 commit 1e4a507

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,9 @@ def test_expand_args(monkeypatch):
680680
monkeypatch.setenv("CLICK_TEST", "hello")
681681
assert "hello" in click.utils._expand_args(["$CLICK_TEST"])
682682
assert "pyproject.toml" in click.utils._expand_args(["*.toml"])
683-
assert os.path.join("docs", "conf.py") in click.utils._expand_args(["**/conf.py"])
683+
assert os.path.join("tests", "conftest.py") in click.utils._expand_args(
684+
["**/conftest.py"]
685+
)
684686
assert "*.not-found" in click.utils._expand_args(["*.not-found"])
685687
# a bad glob pattern, such as a pytest identifier, should return itself
686688
assert click.utils._expand_args(["test.py::test_bad"])[0] == "test.py::test_bad"

0 commit comments

Comments
 (0)