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

javascript - Slick Slider width recalculation -

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

angular2 services - Angular 2 RC 4 Http post not firing -