Skip to content

Commit ce80b36

Browse files
ritwik-gclaude
andcommitted
Fix integration test failures by correcting escaped newlines
- Replace \\n with \n in interactive command test inputs - All 117 tests now pass successfully - Task 6.1 (comprehensive unit tests) completed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b8be121 commit ce80b36

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_integration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_complete_customer_workflow(tmp_path, monkeypatch):
140140

141141
# Set secret
142142
result = runner.invoke(app, ["values", "set-secret", "api-key", "--env", "prod"],
143-
input="1\\nPROD_API_KEY\\n")
143+
input="1\nPROD_API_KEY\n")
144144
assert result.exit_code == 0
145145

146146
# Set optional array
@@ -243,7 +243,7 @@ def test_multi_environment_workflow(tmp_path, monkeypatch):
243243
assert result.exit_code == 0
244244

245245
result = runner.invoke(app, ["values", "set-secret", "database-password", "--env", "dev"],
246-
input="1\\nDEV_DB_PASSWORD\\n")
246+
input="1\nDEV_DB_PASSWORD\n")
247247
assert result.exit_code == 0
248248

249249
# Configure production environment
@@ -254,7 +254,7 @@ def test_multi_environment_workflow(tmp_path, monkeypatch):
254254
assert result.exit_code == 0
255255

256256
result = runner.invoke(app, ["values", "set-secret", "database-password", "--env", "prod"],
257-
input="1\\nPROD_DB_PASSWORD\\n")
257+
input="1\nPROD_DB_PASSWORD\n")
258258
assert result.exit_code == 0
259259

260260
result = runner.invoke(app, ["values", "set", "replicas", "5", "--env", "prod"])
@@ -310,11 +310,11 @@ def test_error_recovery_workflow(tmp_path):
310310

311311
# 3. Try to add duplicate key
312312
result = runner.invoke(app, ["schema", "add"],
313-
input="test-key\\ntest.path\\nTest description\\nstring\\ny\\nn\\nn\\n")
313+
input="test-key\ntest.path\nTest description\nstring\ny\nn\nn\n")
314314
assert result.exit_code == 0
315315

316316
result = runner.invoke(app, ["schema", "add"],
317-
input="test-key\\ntest.path2\\nDuplicate key\\nstring\\ny\\nn\\nn\\n")
317+
input="test-key\ntest.path2\nDuplicate key\nstring\ny\nn\nn\n")
318318
assert result.exit_code == 1
319319
assert "already exists" in result.output
320320

@@ -342,7 +342,7 @@ def test_schema_evolution_workflow(tmp_path):
342342
assert result.exit_code == 0
343343

344344
result = runner.invoke(app, ["schema", "add"],
345-
input="app-name\\napp.name\\nApplication name\\nstring\\ny\\ny\\nmyapp\\nn\\n")
345+
input="app-name\napp.name\nApplication name\nstring\ny\ny\nmyapp\nn\n")
346346
assert result.exit_code == 0
347347

348348
# 2. Set initial values
@@ -351,7 +351,7 @@ def test_schema_evolution_workflow(tmp_path):
351351

352352
# 3. Evolve schema - add new optional field
353353
result = runner.invoke(app, ["schema", "add"],
354-
input="version\\napp.version\\nApplication version\\nstring\\nn\\ny\\n1.0.0\\nn\\n")
354+
input="version\napp.version\nApplication version\nstring\nn\ny\n1.0.0\nn\n")
355355
assert result.exit_code == 0
356356

357357
# 4. Validate existing environment still works (backwards compatibility)
@@ -368,7 +368,7 @@ def test_schema_evolution_workflow(tmp_path):
368368

369369
# 6. Add new required field
370370
result = runner.invoke(app, ["schema", "add"],
371-
input="port\\napp.port\\nApplication port\\nnumber\\ny\\nn\\nn\\n")
371+
input="port\napp.port\nApplication port\nnumber\ny\nn\nn\n")
372372
assert result.exit_code == 0
373373

374374
# 7. Validation should now fail

0 commit comments

Comments
 (0)