how to import module only once in python behave step files -


i new python , behave. in step file, test_steps.py, have imported following:

from behave import given, when, then, step behave_http.steps import * datetime import datetime import time import pdb import xmltodict import requests 

if created step file, test2_steps.py, had import above again. there way avoid that?

thank help!

it's useful know imports given file; however, can following:

config.py

from behave import given, when, then, step behave_http.steps import * datetime import datetime import time import pdb import xmltodict import requests 

test2_steps.py

from config import * #other code here 

Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -