Skip to content

Commit e3380d0

Browse files
edavidajakarawoo
andauthored
Update tests/test_main_system_caches.py
Co-authored-by: Kara Woo <karawoo@users.noreply.github.com>
1 parent ce405ad commit e3380d0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_main_system_caches.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ def test_system_caches_delete_happy_path(self):
111111
result = runner.invoke(cli, args)
112112

113113
self.assertEqual(result.exit_code, 0, result.output)
114+
delete_request = next(r for r in httpretty.latest_requests() if r.method == "DELETE")
115+
body = json.loads(delete_request.body)
116+
self.assertEqual(body["language"], "Python")
117+
self.assertEqual(body["version"], "1.2.3")
118+
self.assertEqual(body["image_name"], "Local")
114119

115120
def test_system_caches_delete_missing_all_flags(self):
116121
"""Omitting both --language and --version yields exit code 2 (Click validation)."""

0 commit comments

Comments
 (0)