@@ -33,25 +33,27 @@ def test_toggle_location_services(self):
3333 def test_set_location_float (self ):
3434 driver = android_w3c_driver ()
3535 httpretty .register_uri (httpretty .POST , appium_command ('/session/1234567890/location' ))
36- assert isinstance (driver .set_location (11.1 , 22.2 , 33.3 , 23.2 ), WebDriver )
36+ assert isinstance (driver .set_location (11.1 , 22.2 , 33.3 , 23.2 , 12 ), WebDriver )
3737
3838 d = get_httpretty_request_body (httpretty .last_request ())
3939 assert abs (d ['location' ]['latitude' ] - 11.1 ) <= FLT_EPSILON
4040 assert abs (d ['location' ]['longitude' ] - 22.2 ) <= FLT_EPSILON
4141 assert abs (d ['location' ]['altitude' ] - 33.3 ) <= FLT_EPSILON
4242 assert abs (d ['location' ]['speed' ] - 23.2 ) <= FLT_EPSILON
43+ assert abs (d ['location' ]['satellites' ] - 12 ) <= FLT_EPSILON
4344
4445 @httpretty .activate
4546 def test_set_location_str (self ):
4647 driver = android_w3c_driver ()
4748 httpretty .register_uri (httpretty .POST , appium_command ('/session/1234567890/location' ))
48- assert isinstance (driver .set_location ('11.1' , '22.2' , '33.3' , '23.2' ), WebDriver )
49+ assert isinstance (driver .set_location ('11.1' , '22.2' , '33.3' , '23.2' , '12' ), WebDriver )
4950
5051 d = get_httpretty_request_body (httpretty .last_request ())
5152 assert d ['location' ]['latitude' ] == '11.1'
5253 assert d ['location' ]['longitude' ] == '22.2'
5354 assert d ['location' ]['altitude' ] == '33.3'
5455 assert d ['location' ]['speed' ] == '23.2'
56+ assert d ['location' ]['satellites' ] == '12'
5557
5658 @httpretty .activate
5759 def test_set_location_without_altitude (self ):
0 commit comments