Refactor endpoint tests

Replace force_login calls with login call from client class in setUp
This commit is contained in:
sonny 2019-10-28 21:35:19 +01:00
parent 61702e720a
commit 858f84aaad
132 changed files with 5158 additions and 661 deletions

View file

@ -1,14 +1,18 @@
FROM python:3.7-buster
# Run project binaries from the user's local bin folder
ENV PATH=/home/newsreader/.local/bin:$PATH
# Set the default shell
RUN useradd -ms /bin/bash newsreader
RUN mkdir /app
WORKDIR /app
RUN chown newsreader:newsreader /app
USER newsreader
# Use a seperate layer for the project requirements
COPY ./requirements /app/requirements
RUN pip install -r requirements/dev.txt
COPY requirements /app/requirements
RUN pip install --user -r requirements/dev.txt
COPY . /app/
# Set the default shell & add a home dir
RUN useradd -ms /bin/bash newsreader
USER newsreader