Skip to content
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

Merged
merged 9 commits into from
Oct 24, 2023

Conversation

DrPaulSharp
Copy link
Collaborator

No description provided.

RAT/models.py Outdated Show resolved Hide resolved
RAT/models.py Outdated Show resolved Hide resolved
RAT/project.py Outdated Show resolved Hide resolved
RAT/project.py Show resolved Hide resolved
RAT/project.py Outdated Show resolved Hide resolved
tests/test_project.py Outdated Show resolved Hide resolved
tests/test_project.py Show resolved Hide resolved
])
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='.')
Copy link
Contributor

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

Copy link
Collaborator Author

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.

@DrPaulSharp DrPaulSharp merged commit bbfebd4 into RascalSoftware:main Oct 24, 2023
6 checks passed
@DrPaulSharp DrPaulSharp deleted the extras branch October 24, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants