0

すべての PyTest で使用される共通コードがいくつかあります。完全なコードを任意のファイル内に保持し、実行時にロードしたいと考えています。Python を使用することは可能ですか?

例えば:

def teardown_method(self, method):
 print "This is tear down method"
def setup_method(self, method):
 print "This is setup method"
4

1 に答える 1