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
You can use the .dockerignore file to exclude all __pycache__ folders from being sent to the docker image context:
__pycache__
.dockerignore file, excludes __pycache__ folders and *.pyc files from all sub/folders:
.dockerignore
*.pyc
**/__pycache__ **/*.pyc