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.