Skip to content

Commit

Permalink
Remove external mock dependency
Browse files Browse the repository at this point in the history
Since the minimum version of Python we support contains mock in the
standard library, we should switch to it and remove one external
dependency.
  • Loading branch information
s-t-e-v-e-n-k committed Dec 10, 2024
1 parent 17e0aeb commit dbbb2c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pytest-cov==5.0.0
pytest-json-report==1.5.0
pyflakes==3.2.0
pylama==8.4.1
mock==5.1.0
mypy==1.10.0
types-PyYAML==6.0.12.20240311
types-requests==2.32.0.20240521
Expand Down
2 changes: 1 addition & 1 deletion test/eos/test_heredoc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest
from textwrap import dedent

Expand Down
4 changes: 2 additions & 2 deletions test/nxos/test_getters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Tests for getters."""

from unittest.mock import patch

from napalm.base.test.getters import BaseTestGetters, wrap_test_cases
from napalm.base.test import helpers
from napalm.base import models

import pytest
from mock import patch


def mock_time():
return 1500000000.000000
Expand Down
4 changes: 2 additions & 2 deletions test/nxos_ssh/test_getters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Tests for getters."""

from unittest.mock import patch

from napalm.base.test.getters import BaseTestGetters, wrap_test_cases
from napalm.base.test import helpers
from napalm.base import models

import pytest
from mock import patch


def mock_time():
return 1500000000.000000
Expand Down

0 comments on commit dbbb2c8

Please sign in to comment.