Skip to content

Commit

Permalink
feat: fix to pytest request signature@
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottmurray committed Jul 17, 2021
1 parent 4fdabdd commit 2d7f943
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docker/py37.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ COPY requirements_dev.txt .
RUN apk update
RUN apk upgrade

RUN apk add gcc py-pip python-dev libffi-dev openssl-dev gcc libc-dev bash make
RUN apk add gcc py-pip python-dev libffi-dev openssl-dev gcc libc-dev bash cmake make
ENV MUSL_LOCALE_DEPS musl-dev gettext-dev libintl

RUN apk add --no-cache \
$MUSL_LOCALE_DEPS \
&& wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
&& unzip musl-locales-master.zip \
&& cd musl-locales-master \
&& cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
&& cd .. && rm -r musl-locales-master

RUN python -m pip install psutil
RUN pip install -r requirements_dev.txt
Expand Down
Binary file added musl-locales-master.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion pact/pact.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def verify(self):
"""
self._interactions = []
resp = requests.get(
self.uri + "/interactions/verification", headers=self.HEADERS, verify=False
self.uri + "/interactions/verification", headers=self.HEADERS, verify=False, allow_redirects=True
)
assert resp.status_code == 200, resp.text
resp = requests.post(self.uri + "/pact", headers=self.HEADERS, verify=False)
Expand Down
3 changes: 3 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pytest==5.4.1
pytest-cov==2.11.1
tox-travis==0.8
wheel==0.24.0
psutil>=2.0.0
requests>=2.5.0
six>=1.9.0

0 comments on commit 2d7f943

Please sign in to comment.