1 | """ |
||
2 | Manifest file testing module for the generated project. |
||
3 | """ |
||
4 | import os |
||
5 | from . import bake_cookie, load_cookiecutter_json |
||
6 | |||
7 | |||
8 | def test_manifest_file(cookies): |
||
9 | "Test that the MANIFEST.in file exists and the content is valid" |
||
10 | with bake_cookie(cookies) as result: |
||
11 | manifest_file_path = result.project_path.joinpath("MANIFEST.in") |
||
12 | cookiecutter_json = load_cookiecutter_json() |
||
13 | |||
14 | assert os.path.exists(manifest_file_path) |
||
15 | |||
16 | with open(manifest_file_path, "r") as fp: |
||
0 ignored issues
–
show
|
|||
17 | assert str(cookiecutter_json["project_slug"]) in fp.read() |
||
18 |
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.