feat(drone-dock): 接入火山实时图传并保留禁飞保护
This commit is contained in:
@@ -140,7 +140,7 @@ final class DroneDockShootingTaskViewTests: XCTestCase {
|
||||
XCTAssertEqual(request.url?.path, "/api/app/airport/shooting")
|
||||
XCTAssertNil(request.httpBody)
|
||||
let query = URLComponents(url: try XCTUnwrap(request.url), resolvingAgainstBaseURL: false)?.queryItems
|
||||
XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "1")])
|
||||
XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "0")])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ private final class TaskViewReadService: DroneDockShootingServing {
|
||||
init(response: DroneDockShootingResponse? = nil) throws { self.response = try response ?? TaskViewData.response() }
|
||||
|
||||
func shooting(taskID: Int, liveBattery: Bool) async throws -> DroneDockShootingResponse {
|
||||
XCTAssertTrue(liveBattery)
|
||||
XCTAssertFalse(liveBattery)
|
||||
requests.append(taskID)
|
||||
if let error = nextError {
|
||||
nextError = nil
|
||||
|
||||
Reference in New Issue
Block a user