Commit 5a01fca1 authored by Etienne Allovon's avatar Etienne Allovon

2409 - Fixes tests and requirements

Put back sqlalchemy in the requirements (for IDEs)
And ensure the tests are done with the debian version of the lib
parent b97f772f
from debian:jessie
FROM debian:jessie
RUN apt-get -yqq update \
&& apt-get -yqq install python-pip \
......@@ -12,8 +12,12 @@ WORKDIR /usr/src/dao
RUN pip install -r requirements.txt
RUN pip install -r test-requirements.txt
RUN echo 'deb http://deb.debian.org/debian-security/ jessie/updates main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -yqq install python-sqlalchemy=0.9.8+dfsg-0.1+deb8u1
# Special trick to install Debian version of sqlalchemy for the tests:
# - sqlalchemy is kept in requirements for developments (for IDEs)
# - but then we force installation of sqlalchemy from debian repo
# This should install package version 0.9.8+dfsg-0.1+deb8u1
RUN pip uninstall -y sqlalchemy
RUN apt-get update \
&& apt-get -yqq install python-sqlalchemy
CMD nosetests xivo_dao
......@@ -2,4 +2,4 @@ git+https://gitlab.com/xivo.solutions/xivo-lib-python.git
git+https://gitlab.com/xivo.solutions/xivo-provd-client.git
psycopg2==2.5.4
pyyaml==3.11
#sqlalchemy==0.9.8
sqlalchemy==0.9.8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment