From cc8d7d28e7bed5c60fd743b98b05c7a56506786f Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 2 Aug 2023 10:00:31 -0400 Subject: [PATCH] more strictly test commit messages --- tests/test_flake.py | 3 +-- tests/test_pypi.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_flake.py b/tests/test_flake.py index ed50e11..afb00bc 100644 --- a/tests/test_flake.py +++ b/tests/test_flake.py @@ -29,6 +29,5 @@ def test_main(helpers: conftest.Helpers) -> None: check=True, ).stdout.strip() print(commit) - assert version in commit - assert "crate" in commit + assert f"crate: 8.0.0 -> {version}" in commit assert "https://diff.rs/fd-find/8.0.0/" in commit diff --git a/tests/test_pypi.py b/tests/test_pypi.py index 1d8442c..d5d4001 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -31,8 +31,7 @@ def test_main(helpers: conftest.Helpers) -> None: check=True, ).stdout.strip() print(commit) - assert version in commit - assert "pypi" in commit + assert f"pypi: 2.0.0 -> {version}" in commit assert ( f"https://github.com/Mic92/python-mpd2/blob/{version}/doc/changes.rst" in commit