grpc: removed set session location, achieved with start session

This commit is contained in:
Blake Harnden 2021-04-27 10:59:10 -07:00
parent e0fe86bcb2
commit a217c2445c
6 changed files with 0 additions and 130 deletions

View file

@ -236,33 +236,6 @@ class TestGrpc:
assert len(response.sessions) == 1
assert found_session is not None
def test_set_session_location(self, grpc_server: CoreGrpcServer):
# given
client = CoreGrpcClient()
session = grpc_server.coreemu.create_session()
# then
scale = 2
xyz = (1, 1, 1)
lat_lon_alt = (1, 1, 1)
with client.context_connect():
response = client.set_session_location(
session.id,
x=xyz[0],
y=xyz[1],
z=xyz[2],
lat=lat_lon_alt[0],
lon=lat_lon_alt[1],
alt=lat_lon_alt[2],
scale=scale,
)
# then
assert response.result is True
assert session.location.refxyz == xyz
assert session.location.refscale == scale
assert session.location.refgeo == lat_lon_alt
def test_set_session_metadata(self, grpc_server: CoreGrpcServer):
# given
client = CoreGrpcClient()

View file

@ -280,33 +280,6 @@ class TestGrpcw:
assert len(sessions) == 1
assert found_session is not None
def test_set_session_location(self, grpc_server: CoreGrpcServer):
# given
client = CoreGrpcClient()
session = grpc_server.coreemu.create_session()
scale = 2
xyz = (1, 1, 1)
lat_lon_alt = (1, 1, 1)
location = SessionLocation(
xyz[0],
xyz[1],
xyz[2],
lat_lon_alt[0],
lat_lon_alt[1],
lat_lon_alt[2],
scale,
)
# then
with client.context_connect():
result = client.set_session_location(session.id, location)
# then
assert result is True
assert session.location.refxyz == xyz
assert session.location.refscale == scale
assert session.location.refgeo == lat_lon_alt
def test_set_session_metadata(self, grpc_server: CoreGrpcServer):
# given
client = CoreGrpcClient()