fgerlits commented on code in PR #2061:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2061#discussion_r2592763293
##########
behave_framework/src/minifi_test_framework/steps/core_steps.py:
##########
@@ -58,6 +59,17 @@ def step_impl(context: MinifiTestContext, file_name: str,
content: str, path: st
context.get_or_create_default_minifi_container().files.append(File(os.path.join(path,
file_name), new_content))
+@step('a file with the content "{content}" is present in "{path}"')
+def step_impl(context: MinifiTestContext, content: str, path: str):
+ new_content = content.replace("\\n", "\n")
+
context.get_or_create_default_minifi_container().files.append(File(os.path.join(path,
str(uuid.uuid4())), new_content))
Review Comment:
this sounds more like a `@given` than a `@step` (also the two blocks before
it)
--
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]