fix: RequestData GET -> Get
This commit is contained in:
parent
bb7549c9d6
commit
2cb7e678d7
|
@ -730,7 +730,7 @@ mod tests {
|
||||||
fn json_vehicle_data_htlc_2023_10_18() {
|
fn json_vehicle_data_htlc_2023_10_18() {
|
||||||
let s = include_str!("../testdata/vehicle_data_HTLC_2023_10_18.json");
|
let s = include_str!("../testdata/vehicle_data_HTLC_2023_10_18.json");
|
||||||
|
|
||||||
let request_data = RequestData::GET {
|
let request_data = RequestData::Get {
|
||||||
url: "https://owner-api.teslamotors.com/api/1/vehicles/1234567890/vehicle_data",
|
url: "https://owner-api.teslamotors.com/api/1/vehicles/1234567890/vehicle_data",
|
||||||
};
|
};
|
||||||
Api::parse_json::<VehicleData>(&request_data, s.to_string()).unwrap();
|
Api::parse_json::<VehicleData>(&request_data, s.to_string()).unwrap();
|
||||||
|
@ -740,7 +740,7 @@ mod tests {
|
||||||
fn json_vehicle_data_htlc_2023_10_19() {
|
fn json_vehicle_data_htlc_2023_10_19() {
|
||||||
let s = include_str!("../testdata/vehicle_data_HTLC_2023_10_19.json");
|
let s = include_str!("../testdata/vehicle_data_HTLC_2023_10_19.json");
|
||||||
|
|
||||||
let request_data = RequestData::GET {
|
let request_data = RequestData::Get {
|
||||||
url: "https://owner-api.teslamotors.com/api/1/vehicles/1234567890/vehicle_data",
|
url: "https://owner-api.teslamotors.com/api/1/vehicles/1234567890/vehicle_data",
|
||||||
};
|
};
|
||||||
Api::parse_json::<VehicleData>(&request_data, s.to_string()).unwrap();
|
Api::parse_json::<VehicleData>(&request_data, s.to_string()).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue