File tree 8 files changed +16
-16
lines changed
8 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,12 @@ async def delete_environment(environment_id: str) -> None:
90
90
@router .get (
91
91
"/{environment_id}/rocketpy" ,
92
92
responses = {
93
- 203 : {
93
+ 200 : {
94
94
"description" : "Binary file download" ,
95
95
"content" : {"application/octet-stream" : {}},
96
96
}
97
97
},
98
- status_code = 203 ,
98
+ status_code = 200 ,
99
99
response_class = Response ,
100
100
)
101
101
async def get_rocketpy_environment_binary (environment_id : str ):
@@ -118,7 +118,7 @@ async def get_rocketpy_environment_binary(environment_id: str):
118
118
content = binary ,
119
119
headers = headers ,
120
120
media_type = "application/octet-stream" ,
121
- status_code = 203 ,
121
+ status_code = 200 ,
122
122
)
123
123
124
124
Original file line number Diff line number Diff line change @@ -86,12 +86,12 @@ async def delete_flight(flight_id: str) -> None:
86
86
@router .get (
87
87
"/{flight_id}/rocketpy" ,
88
88
responses = {
89
- 203 : {
89
+ 200 : {
90
90
"description" : "Binary file download" ,
91
91
"content" : {"application/octet-stream" : {}},
92
92
}
93
93
},
94
- status_code = 203 ,
94
+ status_code = 200 ,
95
95
response_class = Response ,
96
96
)
97
97
async def get_rocketpy_flight_binary (flight_id : str ):
@@ -112,7 +112,7 @@ async def get_rocketpy_flight_binary(flight_id: str):
112
112
content = binary ,
113
113
headers = headers ,
114
114
media_type = "application/octet-stream" ,
115
- status_code = 203 ,
115
+ status_code = 200 ,
116
116
)
117
117
118
118
Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ async def delete_motor(motor_id: str) -> None:
84
84
@router .get (
85
85
"/{motor_id}/rocketpy" ,
86
86
responses = {
87
- 203 : {
87
+ 200 : {
88
88
"description" : "Binary file download" ,
89
89
"content" : {"application/octet-stream" : {}},
90
90
}
91
91
},
92
- status_code = 203 ,
92
+ status_code = 200 ,
93
93
response_class = Response ,
94
94
)
95
95
async def get_rocketpy_motor_binary (motor_id : str ):
@@ -110,7 +110,7 @@ async def get_rocketpy_motor_binary(motor_id: str):
110
110
content = binary ,
111
111
headers = headers ,
112
112
media_type = "application/octet-stream" ,
113
- status_code = 203 ,
113
+ status_code = 200 ,
114
114
)
115
115
116
116
Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ async def delete_rocket(rocket_id: str) -> None:
84
84
@router .get (
85
85
"/{rocket_id}/rocketpy" ,
86
86
responses = {
87
- 203 : {
87
+ 200 : {
88
88
"description" : "Binary file download" ,
89
89
"content" : {"application/octet-stream" : {}},
90
90
}
91
91
},
92
- status_code = 203 ,
92
+ status_code = 200 ,
93
93
response_class = Response ,
94
94
)
95
95
async def get_rocketpy_rocket_binary (rocket_id : str ):
@@ -110,7 +110,7 @@ async def get_rocketpy_rocket_binary(rocket_id: str):
110
110
content = binary ,
111
111
headers = headers ,
112
112
media_type = "application/octet-stream" ,
113
- status_code = 203 ,
113
+ status_code = 200 ,
114
114
)
115
115
116
116
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def test_read_rocketpy_environment_binary(mock_controller_instance):
229
229
mock_response = AsyncMock (return_value = b'rocketpy' )
230
230
mock_controller_instance .get_rocketpy_environment_binary = mock_response
231
231
response = client .get ('/environments/123/rocketpy' )
232
- assert response .status_code == 203
232
+ assert response .status_code == 200
233
233
assert response .content == b'rocketpy'
234
234
assert response .headers ['content-type' ] == 'application/octet-stream'
235
235
mock_controller_instance .get_rocketpy_environment_binary .assert_called_once_with (
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ def test_read_rocketpy_flight_binary(mock_controller_instance):
339
339
return_value = b'rocketpy'
340
340
)
341
341
response = client .get ('/flights/123/rocketpy' )
342
- assert response .status_code == 203
342
+ assert response .status_code == 200
343
343
assert response .content == b'rocketpy'
344
344
assert response .headers ['content-type' ] == 'application/octet-stream'
345
345
mock_controller_instance .get_rocketpy_flight_binary .assert_called_once_with (
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def test_read_rocketpy_motor_binary(mock_controller_instance):
385
385
mock_response = AsyncMock (return_value = b'rocketpy' )
386
386
mock_controller_instance .get_rocketpy_motor_binary = mock_response
387
387
response = client .get ('/motors/123/rocketpy' )
388
- assert response .status_code == 203
388
+ assert response .status_code == 200
389
389
assert response .content == b'rocketpy'
390
390
assert response .headers ['content-type' ] == 'application/octet-stream'
391
391
mock_controller_instance .get_rocketpy_motor_binary .assert_called_once_with (
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ def test_read_rocketpy_rocket_binary(mock_controller_instance):
446
446
mock_response = AsyncMock (return_value = b'rocketpy' )
447
447
mock_controller_instance .get_rocketpy_rocket_binary = mock_response
448
448
response = client .get ('/rockets/123/rocketpy' )
449
- assert response .status_code == 203
449
+ assert response .status_code == 200
450
450
assert response .content == b'rocketpy'
451
451
assert response .headers ['content-type' ] == 'application/octet-stream'
452
452
mock_controller_instance .get_rocketpy_rocket_binary .assert_called_once_with (
You can’t perform that action at this time.
0 commit comments