Skip to content

Commit dfcc5cc

Browse files
committed
Test generated deploys too
1 parent 5a2c5dc commit dfcc5cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def test_deploy(self):
107107
["quarto", get_manifest_path("pyshiny_with_manifest", "")],
108108
["tensorflow", get_api_path("pyshiny_with_manifest", "")],
109109
["voila", get_dir(join("pip1", "dummy.ipynb"))],
110+
# This covers all deploys generated by generate_deploy_python
111+
["fastapi", get_api_path("stock-api-fastapi", "")],
110112
]
111113
],
112114
)
@@ -118,7 +120,7 @@ def test_deploy_draft(self, command, target, expected_activate):
118120
httpretty.register_uri(
119121
httpretty.GET,
120122
"http://fake_server/__api__/server_settings",
121-
body=json.dumps({}),
123+
body=json.dumps({"version": "9999.99.99"}),
122124
adding_headers={"Content-Type": "application/json"},
123125
status=200,
124126
)

0 commit comments

Comments
 (0)