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

Incorporate model prefix into generated test filenames. #4

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

emeryberger
Copy link
Member

This will simplify integration of tests generated using different models.

@@ -112,7 +112,7 @@ def positive_int(value):
def test_file_path(test_seq: int) -> Path:
"""Returns the Path for a test's file, given its sequence number."""
global args
return args.tests_dir / f"test_{PREFIX}_{test_seq}.py"
return args.tests_dir / f"test_{PREFIX}_{args.model.split('/')[0]}_{test_seq}.py"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about instead we add a --prefix that replaces the current PREFIX code? Then we could invoke it as --model foo/bar!123 --prefix coverup_foobar without having to worry about invalid characters in the model name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@jaltmayerpizzorno jaltmayerpizzorno merged commit ab8e954 into main Mar 25, 2024
13 checks passed
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