Esempio n. 1
0
def run():
    channel = grpc.insecure_channel('localhost:50051')
    stub = sat_score_pb2_grpc.SATScoreInfoStub(channel)
    print("-------------------GetScore--------------------")
    get_one_score(stub)
    print("----------------ScoreDifference----------------")
    get_score_difference(stub)
Esempio n. 2
0
def test_five():
    channel = grpc.insecure_channel('localhost:50051')
    stub = sat_score_pb2_grpc.SATScoreInfoStub(channel)
    assert get_score_difference(stub)


#if __name__ == '__main__':
#	run()
Esempio n. 3
0
def test_four():
    channel = grpc.insecure_channel('localhost:50051')
    stub = sat_score_pb2_grpc.SATScoreInfoStub(channel)
    assert get_one_score(stub, 2000) == 300