How can I ensure that pytest fixture function is executed only once irrespective of howmany calls within same module

后端 未结 0 498
野的像风
野的像风 2021-02-19 15:05

First I had a class in original code

#mycode.py

class MyClass:
   def __init__(self,value):
       self.value = value
   
   def run(self):
       return self.va         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题