Add test for readme file
This commit is contained in:
parent
4009cf6c7e
commit
146f9e7e31
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue