0
です。私はPythonとBehaveの新機能です。私のステップファイル、test_steps.py
で、私は次のようにインポートした:私は別のステップファイル、test2_steps.py
を作成した場合モジュールを一度インポートする方法は、Pythonの動作ステップファイル
from behave import given, when, then, step
from behave_http.steps import *
from datetime import datetime
import time
import pdb
import xmltodict
import requests
、私は再び上記のインポートする必要がありました。 これを避ける方法はありますか?
ありがとうございました!
いいえ、あなたはファイルで使用するものをインポートする必要が
test2_steps.py:ただし、次のような何かを行うことができます。 –