-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds additional validators and "write_script" routine #15
Conversation
tests/test_project.py
Outdated
]) | ||
def test_write_script(test_project, test_project_script, input_filename: str) -> None: | ||
"""Test the script we write to regenerate the project is created and runs as expected.""" | ||
path = tempfile.mkdtemp(dir='.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the dir
is necessary as this will create the test folder in my repo folder which will not be deleted if the test failed, without dir
it should be created in the user's tmp directory. Also it will be better to setup shutil.rmtree
in a teardown function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, now done. Although avoiding all of this was why I had a mock file in the first place.
No description provided.