Skip to content

Commit b1948ad

Browse files
committed
Remove dep on mock
1 parent 25a6bd2 commit b1948ad

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip uv
19-
python -m uv pip install setuptools wheel twine mock
19+
python -m uv pip install setuptools wheel twine
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /tmp/smp/
44

55
COPY ./requirements.txt /tmp/smp/requirements.txt
66
RUN pip install -r requirements.txt
7-
RUN pip install pytest mock
7+
RUN pip install pytest
88

99
COPY . /tmp/smp/
1010
RUN pip install .

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ docs = [
3939
'sphinx-book-theme==1.1.2',
4040
]
4141
test = [
42-
'mock',
4342
'pytest',
4443
'ruff==0.5.2',
4544
]

tests/test_models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import sys
2-
import mock
32
import pytest
43
import torch
54

6-
# mock detection module
7-
sys.modules["torchvision._C"] = mock.Mock()
85
import segmentation_models_pytorch as smp # noqa
96

107

tests/test_preprocessing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import sys
2-
import mock
32
import numpy as np
43

5-
# mock detection module
6-
sys.modules["torchvision._C"] = mock.Mock()
74
import segmentation_models_pytorch as smp # noqa
85

96

0 commit comments

Comments
 (0)