Refactor endpoint tests
Replace force_login calls with login call from client class in setUp
This commit is contained in:
parent
61702e720a
commit
858f84aaad
132 changed files with 5158 additions and 661 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue