Skip to content
Myr

Don't test with a file in docs/

Before adoption: this commit came in with the history the project adopted, so no landing records it.

It may not be present when building

authored by Matthias Urlichs · committed by Matthias Urlichs · parent 309ce91 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:tests/test_utils.py+3 added-1 removed
678 unmodified lines
679 assert user in click.utils._expand_args(["~"])680 monkeypatch.setenv("CLICK_TEST", "hello")681 assert "hello" in click.utils._expand_args(["$CLICK_TEST"])682 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 )686 assert "*.not-found" in click.utils._expand_args(["*.not-found"])687 # a bad glob pattern, such as a pytest identifier, should return itself688 assert click.utils._expand_args(["test.py::test_bad"])[0] == "test.py::test_bad"689
35 unmodified lines