Getting error ImportMismatchError while running py.test

后端 未结 6 1642
不知归路
不知归路 2021-01-31 07:20

When I am running tests locally its working fine, but after creating the docker and running inside the container I am getting below error.

    /usr/local/lib/pyt         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 07:47

    You can use the .dockerignore file to exclude all __pycache__ folders from being sent to the docker image context:

    .dockerignore file, excludes __pycache__ folders and *.pyc files from all sub/folders:

    **/__pycache__
    **/*.pyc
    

提交回复
热议问题