Skip to content

Commit

Permalink
Merge pull request #59 from GitRon/refactor/removed-mock-try-excepts-…
Browse files Browse the repository at this point in the history
…for-python33

Removed Python <3.3 mock imports from unit-test files
  • Loading branch information
lociii authored Sep 10, 2024
2 parents 6d3bd27 + e574cc7 commit 47529d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions tests/services/test_validator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import re

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

from django.test import override_settings, TestCase

Expand Down
5 changes: 1 addition & 4 deletions tests/test_scrub_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from unittest.mock import patch
from io import StringIO

from django.core.management import call_command
Expand Down
5 changes: 1 addition & 4 deletions tests/test_scrub_validator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from django_scrubber.services.validator import ScrubberValidatorService

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

from django.core.management import call_command
from django.test import TestCase
Expand Down

0 comments on commit 47529d4

Please sign in to comment.