We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18dd5cd commit c87fd7aCopy full SHA for c87fd7a
providers/openfeature-provider-flagd/tests/e2e/flagd_container.py
@@ -1,5 +1,5 @@
1
-import os
2
import time
+from pathlib import Path
3
4
import grpc
5
from grpc_health.v1 import health_pb2, health_pb2_grpc
@@ -16,10 +16,8 @@ def __init__(
16
port: int = 8013,
17
**kwargs,
18
) -> None:
19
- my_path = os.path.abspath(os.path.dirname(__file__))
20
- path = os.path.join(my_path, "../../openfeature/test-harness/version.txt")
21
- with open(path) as file:
22
- data = file.read().rstrip()
+ path = Path(__file__).parents[2] / "openfeature/test-harness/version.txt"
+ data = path.read_text().rstrip()
23
super().__init__(f"{image}:v{data}", **kwargs)
24
self.port = port
25
self.with_exposed_ports(self.port, HEALTH_CHECK)
0 commit comments