Skip to content

Commit 0d5b921

Browse files
committed
Merge branch 'master' of github.com:gaurav-bhardwaj-ind/pact-python into gaurav-bhardwaj-ind-master
2 parents 00dcacd + cc66116 commit 0d5b921

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pact/matchers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import datetime
44

55
from enum import Enum
6+
from decimal import Decimal
67

78

89
class Matcher(object):
@@ -190,7 +191,7 @@ def from_term(term):
190191
"""
191192
if term is None:
192193
return term
193-
elif isinstance(term, (six.string_types, six.binary_type, int, float)):
194+
elif isinstance(term, (six.string_types, six.binary_type, int, float, Decimal)):
194195
return term
195196
elif isinstance(term, dict):
196197
return {k: from_term(v) for k, v in term.items()}

pact/message_pact.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""API for creating a contract and configuring the mock service."""
22
from __future__ import unicode_literals
33

4-
import json
4+
import simplejson as json
55
import os
66
from subprocess import Popen
77

requirements_dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ markupsafe==2.0.1; python_version < '3.7'
2424
markupsafe==2.1.2; python_version >= '3.7'
2525
httpx==0.22.0; python_version < '3.7'
2626
httpx==0.23.3; python_version >= '3.7'
27+
simplejson==3.18.4

0 commit comments

Comments
 (0)