diff options
author | Henri Chataing <henrichataing@google.com> | 2022-01-13 15:11:57 +0100 |
---|---|---|
committer | Henri Chataing <henrichataing@google.com> | 2022-01-14 16:20:03 +0100 |
commit | 3cadac0953fb0a21c6546368daf9dd47c54855f1 (patch) | |
tree | afb83e51c5440a91a1ca88e874e74dcb87f01d5f | |
parent | 4c6a3111b32f820f80d64423fc3a02939c6fa44b (diff) | |
download | mmi2grpc-3cadac0953fb0a21c6546368daf9dd47c54855f1.tar.gz |
Accept test name as parameter to __init__
Change-Id: Id5a11366fea8da0e23e4977e41e5d324be97306e
-rw-r--r-- | mmi2grpc/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mmi2grpc/__init__.py b/mmi2grpc/__init__.py index 76a162c..194676a 100644 --- a/mmi2grpc/__init__.py +++ b/mmi2grpc/__init__.py @@ -14,10 +14,12 @@ GRPC_PORT = 8999 class IUT: - def __init__(self, args: List[str], port: int = GRPC_PORT): + def __init__(self, test: str, args: List[str], + port: int = GRPC_PORT, **kwargs): self.a2dp_ = None self.address_ = None self.port = port + self.test = test def __enter__(self): with grpc.insecure_channel(f'localhost:{self.port}') as channel: |