bdd

Mocking in Behave and Flask

Mocking in Behave and Flask Question: I am trying to mock an HTTP request call using mock because I don’t want to Behave to call it actually. So I have this code scenario in matches.py file: import request def get_match(): response = request.get(“https://example.com”) return response And in my step definition match_steps.py for behave I have …

Total answers: 1

Can I put step definitions in a folder which is not "steps" with behave?

Can I put step definitions in a folder which is not "steps" with behave? Question: I am trying to work with Behave on Python. I was wondering if there would be a way to put my .py files somewhere else instead of being forced to put them all inside the “steps” folder. My current structure …

Total answers: 4

How can I see print() statements in behave (BDD)

How can I see print() statements in behave (BDD) Question: Context: I am using Python with Behave (BDD). Whether I run my tests from the command line (behave) or from a custom main(), the behavior is the same: the test runs and the only output that I see in the console is the standard BDD …

Total answers: 8

Practicing BDD with python

Practicing BDD with python Question: Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great. Asked By: JtR || Source Answers: I am probably completely missing the point, but what I retained of the …

Total answers: 10