Skip to content

Commit 2d7f943

Browse files
committedJul 17, 2021·
feat: fix to pytest request signature@
1 parent 4fdabdd commit 2d7f943

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed
 

‎docker/py37.Dockerfile

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ COPY requirements_dev.txt .
77
RUN apk update
88
RUN apk upgrade
99

10-
RUN apk add gcc py-pip python-dev libffi-dev openssl-dev gcc libc-dev bash make
10+
RUN apk add gcc py-pip python-dev libffi-dev openssl-dev gcc libc-dev bash cmake make
11+
ENV MUSL_LOCALE_DEPS musl-dev gettext-dev libintl
12+
13+
RUN apk add --no-cache \
14+
$MUSL_LOCALE_DEPS \
15+
&& wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
16+
&& unzip musl-locales-master.zip \
17+
&& cd musl-locales-master \
18+
&& cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
19+
&& cd .. && rm -r musl-locales-master
1120

1221
RUN python -m pip install psutil
1322
RUN pip install -r requirements_dev.txt

‎musl-locales-master.zip

61.9 KB
Binary file not shown.

‎pact/pact.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def verify(self):
264264
"""
265265
self._interactions = []
266266
resp = requests.get(
267-
self.uri + "/interactions/verification", headers=self.HEADERS, verify=False
267+
self.uri + "/interactions/verification", headers=self.HEADERS, verify=False, allow_redirects=True
268268
)
269269
assert resp.status_code == 200, resp.text
270270
resp = requests.post(self.uri + "/pact", headers=self.HEADERS, verify=False)

‎requirements_dev.txt

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ pytest==5.4.1
1212
pytest-cov==2.11.1
1313
tox-travis==0.8
1414
wheel==0.24.0
15+
psutil>=2.0.0
16+
requests>=2.5.0
17+
six>=1.9.0

0 commit comments

Comments
 (0)
Please sign in to comment.