martinzink commented on code in PR #2237:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2237#discussion_r3801730331
##########
behave_framework/src/minifi_behave/steps/core_steps.py:
##########
@@ -71,76 +85,138 @@ def __add_directory_with_file_to_container(context:
MinifiTestContext, directory
dirs.append(new_dir)
-@step('a directory at "{directory}" has a file with the content "{content}" in
the "{flow_name}" flow')
-@step("a directory at '{directory}' has a file with the content '{content}' in
the '{flow_name}' flow")
-def create_file_with_content_in_directory_for_flow(context: MinifiTestContext,
directory: str, content: str, flow_name: str):
- __add_directory_with_file_to_container(context, directory,
str(uuid.uuid4()), content, flow_name)
+@step(
+ 'a directory at "{directory}" has a file with the content "{content}" in
the "{flow_name}" flow'
+)
+@step(
+ "a directory at '{directory}' has a file with the content '{content}' in
the '{flow_name}' flow"
+)
+def create_file_with_content_in_directory_for_flow(
+ context: MinifiTestContext, directory: str, content: str, flow_name: str
+):
+ __add_directory_with_file_to_container(
+ context, directory, str(uuid.uuid4()), content, flow_name
+ )
Review Comment:
with 120 it would look like this
```
@step('a directory at "{directory}" has a file with the content "{content}"
in the "{flow_name}" flow')
@step("a directory at '{directory}' has a file with the content '{content}'
in the '{flow_name}' flow")
def create_file_with_content_in_directory_for_flow(
context: MinifiTestContext, directory: str, content: str, flow_name: str
):
__add_directory_with_file_to_container(context, directory,
str(uuid.uuid4()), content, flow_name)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]