Implement the methods in the `TestIOR` class.
In the class TestIOR
, there are two methods that need to be implemented: get_ior_command
and generate_batch_file
.
Implement these methods and write a simple test to validate them.
get_ior_command: Returns a string that represents the IOR command line, given the parameters defined in TestIOR
.
generate_batch_file: Receives the fullPath
and generates a batch file capable of executing the IOR command generated by the previous method.
To generate the batch file, we will actually use the function batch_file
available in util.generator
. This function receives a template and uses Jinja2 to load this file from the template. Take a look at the template to understand how to use it. But to summarize, you will provide a dictionary where the keys are the template's keywords and the values will replace these keywords in the template.
You may need to adapt the template by replacing all the IOR calls with a command tag.
For now, don't worry about the folder where the file will be written. That will be handled in the Round
class.