(cls)
| 15 | |
| 16 | @classmethod |
| 17 | def setUpClass(cls): |
| 18 | port = os.environ.get("BACKEND_PORT", "50051") |
| 19 | cls.channel = grpc.insecure_channel(f"localhost:{port}") |
| 20 | cls.stub = backend_pb2_grpc.BackendStub(cls.channel) |
| 21 | |
| 22 | @classmethod |
| 23 | def tearDownClass(cls): |