Skip to content Skip to sidebar Skip to footer

Reset Collectorregistry Of Prometheus Lib After Each Unit Test

I have a class A that initializes a Counter in its init from prometheus_client import Counter class A: def __init__(self): self.my_counter = Counter('an_awesome_counter

Solution 1:

For the moment, I moved a = A() out of setup(self) and turned it into a class variable as a workaround solution


Post a Comment for "Reset Collectorregistry Of Prometheus Lib After Each Unit Test"