Skip to content

Commit

Permalink
prefer the new unittest.mock from the standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Detiste committed Jun 9, 2024
1 parent 2250754 commit 47af854
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ofxstatement/tests/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import unittest

import mock
try:
from unittest import mock
except ImportError:
import mock

import sys

Expand Down
5 changes: 4 additions & 1 deletion src/ofxstatement/tests/test_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import shutil
from typing import Dict

import mock
try:
from unittest import mock
except ImportError:
import mock

from ofxstatement import tool, statement, configuration, parser, exceptions

Expand Down

0 comments on commit 47af854

Please sign in to comment.