diff --git a/test/bats/contract/deploy.bats b/test/bats/contract/deploy.bats index 98cef6a2a..01e1c848e 100644 --- a/test/bats/contract/deploy.bats +++ b/test/bats/contract/deploy.bats @@ -59,7 +59,7 @@ init_with_fields() { perl -i -pe '$_ .= qq(description = "'"${CONTENT}"' description"\n) if /title/' ${FULL_PATH}/.posit/publish/${CONTENT}.toml if [[ ${ADDITIONAL_FILES} ]]; then - perl -i -pe "s/(files = \[.*)\]/\1, '${ADDITIONAL_FILES}']/" ${FULL_PATH}/.posit/publish/${CONTENT}.toml + perl -i -0777 -pe "s/(files = \[.*?)(\s*\])/\1, '${ADDITIONAL_FILES}'\2/s" ${FULL_PATH}/.posit/publish/${CONTENT}.toml fi # add Connect runtime fields for interactive content diff --git a/test/vscode-ui/test/specs/fastapi.spec.ts b/test/vscode-ui/test/specs/fastapi.spec.ts index 7b26f9545..5e1dfae1f 100644 --- a/test/vscode-ui/test/specs/fastapi.spec.ts +++ b/test/vscode-ui/test/specs/fastapi.spec.ts @@ -90,7 +90,7 @@ describe("VS Code Extension UI Test", () => { ); const fileContent = fs.readFileSync(filePath, "utf8"); await expect(fileContent).toContain( - "type = 'python-fastapi'\nentrypoint = 'simple.py'\nvalidate = true\nfiles = ['simple.py', 'requirements.txt']\ntitle = 'my fastapi app'", + "type = 'python-fastapi'\nentrypoint = 'simple.py'\nvalidate = true\nfiles = [\n 'simple.py',\n 'requirements.txt'\n]\ntitle = 'my fastapi app'", ); }); diff --git a/test/vscode-ui/test/specs/nested-fastapi.spec.ts b/test/vscode-ui/test/specs/nested-fastapi.spec.ts index 1c09dc85b..8ae930a4b 100644 --- a/test/vscode-ui/test/specs/nested-fastapi.spec.ts +++ b/test/vscode-ui/test/specs/nested-fastapi.spec.ts @@ -166,7 +166,7 @@ describe("Nested Fast API Deployment", () => { ); const fileContent = fs.readFileSync(filePath, "utf8"); await expect(fileContent).toContain( - "type = 'python-fastapi'\nentrypoint = 'simple.py'\nvalidate = true\nfiles = ['simple.py', 'requirements.txt']\ntitle = 'my fastapi app'", + "type = 'python-fastapi'\nentrypoint = 'simple.py'\nvalidate = true\nfiles = [\n 'simple.py',\n 'requirements.txt'\n]\ntitle = 'my fastapi app'", ); });