-
Notifications
You must be signed in to change notification settings - Fork 19
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
Updating the integration test harness to handle zipfile inputs as tests #395
Conversation
|
||
new_proto_input_paths = [] | ||
for proto_input_path in proto_input_paths: | ||
zip_path = os.path.join(zipped_input_dir, os.path.basename(proto_input_path) + ".taco") |
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 think we want to use ".guildpoint"
for zipped proto files.
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.
Good catch, I keep forgetting. Were we going to use .guildpoint
for the zipped files or something like .burrito
. I feel like we keep having this conversation because I keep forgetting.
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.
Oh you are right it was guildpoint for the file and burrito for the "wrapper"
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.
done
zipped_input_dir = os.path.join(temp_directory_path, "zipped_inputs", testcase.name) | ||
os.makedirs(zipped_input_dir, exist_ok=True) | ||
|
||
new_xml_input_paths = [] |
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 think this should have a typing of List[str]
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.
done
find_and_replace_tokens[xml_input_path] = zip_path | ||
xml_input_paths = new_xml_input_paths | ||
|
||
new_proto_input_paths = [] |
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 think this should have a typing of List[str]
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.
done
Also adds some indentation formatting, and diff coloring that I wanted to add to get better visuals when trying to test zip file support.