Test data files using behaviour-driven development tests, in python.
It’s a tool to run Gherkin tests (features) against (IATI) data – similar to Cucumber (in Ruby) or Behave (in Python). Here’s a blog that nicely explains the idea.
pip install bdd_tester
bdd_tester --feature [Feature file] --steps [Step file] [Data file]
For more options, run:
bdd_tester --help
from bdd_tester import BDDTester
tester = BDDTester(step_definitions_filepath)
feature = tester.load_feature(feature_filepath)
result = feature.tests[0](*args, **kwargs)