Add test for readme file

This commit is contained in:
Colin Goutte 2023-08-23 16:24:29 +02:00
parent 4009cf6c7e
commit 146f9e7e31
1 changed files with 9 additions and 0 deletions

View File

@ -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.