Skip to content

Commit 6ffb8a3

Browse files
authored
test: fix validate error message (#7961)
* fix validate error message * remove slashes
1 parent 972d1a3 commit 6ffb8a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/validate/test_validate_command.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def test_lint_deprecated_runtimes(self, runtime):
157157
self.assertEqual(command_result.process.returncode, 1)
158158
self.assertRegex(
159159
output,
160-
f"\\[\\[E2531: Validate if lambda runtime is deprecated\\] "
160+
f"\\[\\[W2531: Check if EOL Lambda Function Runtimes are used] "
161161
f"\\(Runtime '{runtime}' was deprecated on.*",
162162
)
163163

@@ -243,9 +243,9 @@ def test_lint_invalid_template(self):
243243

244244
warning_message = (
245245
"[[E0000: Parsing error found when parsing the template] "
246-
'(Duplicate found "HelloWorldFunction" (line 5)) matched 5, '
246+
"(Duplicate found 'HelloWorldFunction' (line 5)) matched 5, "
247247
"[E0000: Parsing error found when parsing the template] "
248-
'(Duplicate found "HelloWorldFunction" (line 12)) matched 12]\n'
248+
"(Duplicate found 'HelloWorldFunction' (line 12)) matched 12]\n"
249249
)
250250

251251
self.assertIn(warning_message, output)

0 commit comments

Comments
 (0)