From 146f9e7e3103567b52bef1fd4346e807a1078cb2 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Wed, 23 Aug 2023 16:24:29 +0200 Subject: [PATCH] Add test for readme file --- test_guidelines.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_guidelines.py b/test_guidelines.py index b203c73..7f18445 100644 --- a/test_guidelines.py +++ b/test_guidelines.py @@ -24,6 +24,15 @@ class TestGuidelines(unittest.TestCase): assert target.is_file() + def test_has_readme(self): + root_dir = run( + ["git", "rev-parse", "--show-toplevel"], capture_output=True, text=True + ).stdout.strip() + target = pathlib.Path(root_dir) / "README.rst" + assert target.exists() + + assert target.is_file() + @unittest.skipIf(os.environ.get("already_in_venv"), "Avoid self call infinite loop") def test_environment(self): """We want to make sure that the project is virtualenv compatible.