We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9803548 commit 134fb01Copy full SHA for 134fb01
1 file changed
docs/index.rst
@@ -56,6 +56,12 @@ Super easy to set up different answers.
56
.thenRaise(Timeout("I'm flaky")) \
57
.thenReturn(mock({'status': 200, 'text': 'Ok'}))
58
59
+State-of-the-art, high-five chaining::
60
+
61
+ # SQLAlchemy, fluently
62
+ with when(User).query.filter_by(...).first().thenReturn("A user"):
63
+ assert User.query.filter_by(username='admin').first() == "A user"
64
65
State-of-the-art, high-five argument matchers::
66
67
# Use the Ellipsis, if you don't care
0 commit comments