Skip to content

Commit 60cf72b

Browse files
committed
Add form to PredicateBuilder.
Prep for version 2.14.
1 parent 1061720 commit 60cf72b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Change Log
22

3-
## 2.13.2
3+
## 2.14
44

5-
* Enhancement - add form to Predicate.
6-
* Fix - added the `imurl` package to dependencies
5+
* Enhancement - add form to Predicate. (Thanks [@kwist-sgr](https://github.com/kwist-sgr).)
76

87
## 2.13.1
98

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
setup(
5454
name="mbtest",
5555
zip_safe=False,
56-
version="2.13.2",
56+
version="2.14.0",
5757
description="Python wrapper & utils for the Mountebank over the wire test double tool.",
5858
long_description=long_description,
5959
long_description_content_type="text/markdown",
@@ -79,7 +79,7 @@
7979
"Programming Language :: Python :: Implementation :: PyPy",
8080
"Topic :: Software Development :: Testing",
8181
],
82-
python_requires=">=3.8",
82+
python_requires=">=3.9",
8383
install_requires=install_dependencies,
8484
tests_require=test_dependencies,
8585
extras_require=extras,

tests/utils/builders.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class PredicateBuilder(Builder):
3939
body = lambda: one_of(None, a_string())
4040
headers = lambda: one_of(None, {a_string(): a_string()})
4141
xpath = lambda: one_of(None, a_string())
42+
jsonpath = lambda: one_of(None, a_string())
43+
form = lambda: one_of(None, {a_string(): a_string()})
4244
operator = lambda: one_of(*list(Predicate.Operator))
4345
case_sensitive = a_boolean
4446

0 commit comments

Comments
 (0)