【发布时间】:2016-02-03 11:52:39
【问题描述】:
我有一些通用代码用于我的所有 PyTest。我想将完整的代码保存在任何文件中并在运行时加载它。可以用 Python 吗?
例如:
def teardown_method(self, method):
print "This is tear down method"
def setup_method(self, method):
print "This is setup method"
【问题讨论】:
标签: python pytest pytest-django