Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit dfe8591

Browse files
committed
Fix tests
1 parent c179dbf commit dfe8591

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_dls_python3_skeleton.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def test_new_module(tmp_path: Path):
3434
3535
str(module),
3636
)
37-
assert (
38-
output.strip()
39-
== "Instructions on how to develop this module are in CONTRIBUTING.rst"
37+
assert output.strip().endswith(
38+
"Instructions on how to develop this module are in CONTRIBUTING.rst"
4039
)
40+
4141
conf = ConfigParser()
4242
conf.read(module / "setup.cfg")
4343
assert conf["metadata"]["author"] == "Firstname Lastname"
@@ -49,10 +49,9 @@ def test_new_module(tmp_path: Path):
4949
check_output("pipenv", "run", "tests", cwd=module)
5050
out = ctx.value.args[0]
5151
print(out)
52-
assert "7 failed, 5 passed, 1 xfailed" in out
52+
assert "6 failed, 5 passed" in out
5353
assert "Please change description in ./setup.cfg" in out
5454
assert "Please change ./README.rst" in out
55-
assert "Please change ./CHANGELOG.rst" in out
5655
assert "Please change ./docs/reference/api.rst" in out
5756
assert "Please delete ./docs/how-to/accomplish-a-task.rst" in out
5857
assert "Please delete ./docs/explanations/why-is-something-so.rst" in out

0 commit comments

Comments
 (0)