File size: 464 Bytes
4346e8f
 
9438a57
4346e8f
9438a57
 
4346e8f
 
 
1
2
3
4
5
6
7
8
9
10
# Python test sandbox: pytest + coverage.py
FROM python:3.12-slim
# requests/responses/pytest-mock/freezegun: HTTP istemcisi ve zaman kullanan kodun ağsız test edilebilmesi için
RUN pip install --no-cache-dir "pytest>=8.2" "pytest-cov>=5.0" "coverage>=7.5" \
    "requests>=2.31" "responses>=0.25" "pytest-mock>=3.12" "freezegun>=1.4" setuptools wheel \
 && pip install --no-cache-dir "mutmut==2.5.1" \
 && useradd -m -u 1000 sandbox
USER sandbox
WORKDIR /work