title: Docker pulled image inside Gitlab CI/CD doesn't recognise django tests
body: <p>Title says for itself. Everything works perfectly, except tests. After pulling and running <code>test</code>(test stage) service, it says <code>Ran 0 tests in 0.000s</code>, but i have some basic tests and they run perfectly on my system. Just can't quite figure out what is wrong.
  I have a docker-compose file like this:</p>
  <pre><code>version: '2'
  services:
    postgres:
      image: &quot;postgres&quot;
      ports:
        - 5432:5432
      volumes:
        - postgres_data:/var/lib/postgresql/data/
      environment:
        - POSTGRES_USER=solo
        - POSTGRES_DB=solo
        - POSTGRES_PASSWORD=solo
        - POSTGRES_HOST_AUTH_METHOD=trust
    web:
      image: $CI_REGISTRY:$CI_COMMIT_REF_NAME
      build: .
      environment:
        - SECRET_KEY
      command: bash -c &quot;cd src &amp;&amp; gunicorn solo.wsgi:application --bind 0.0.0.0:8000&quot;
      volumes:
        - static:/app/static
      expose:
        - 8000
      depends_on:
        - postgres
      restart: always
    test:
      image: $CI_REGISTRY:$CI_COMMIT_REF_NAME
      command: bash -c &quot;python /app/src/manage.py test&quot;
      depends_on:
        - postgres
    nginx:
      build: ./nginx
      volumes:
        - static:/app/static
      ports:
        - 80:80
      depends_on:
        - web
  
  
  volumes:
    static:
    postgres_data:
  </code></pre>
  <p>And .gitlab-ci.yml like this:</p>
  <pre><code>image: docker:latest
  services:
      - docker:dind
  
  stages:
      - build
      - test
      - deploy
  
  before_script:
      - apk add --no-cache py-pip
      - pip install docker-compose==1.9.0
      - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
  
  build:
      stage: build
      script:
          - docker-compose build
          - docker-compose push
  
  test:
      stage: test
      script:
          - docker-compose pull test
          - docker-compose run test
  
  deploy:
      stage: deploy
      only:
          - master
          - cicddev
      before_script:
          - apk add --update alpine-sdk
          - apk add python3-dev libffi-dev libffi-dev libressl-dev
          - apk add --no-cache openssh-client py-pip bash rsync
          - pip install Fabric3==1.14.post1
          - eval $(ssh-agent -s)
          - bash -c 'echo &quot;${DEPLOY_KEY}&quot; | ssh-add -'
          - mkdir -p ~/.ssh
          - echo -e &quot;Host *\n\tStrictHostKeyChecking no\n\n&quot; &gt; ~/.ssh/config
      script:
          - fab -H ${DEPLOY_ADDRESS} deploy
  </code></pre>
  <p>Any thoughts or suggestions?</p>