Skip to content

Commit

Permalink
tests: replace mock with unittest.mock
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 18, 2024
1 parent 23ffa8d commit 37dc374
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/dc_serve/tests/test_jobs.py
Expand Up @@ -7,7 +7,7 @@
ckan.plugins.toolkit.enqueue_job function with a mock that executes jobs
synchronously instead of asynchronously
"""
import mock
from unittest import mock
import pathlib

import pytest
Expand Down
2 changes: 1 addition & 1 deletion ckanext/dc_serve/tests/test_route.py
@@ -1,4 +1,4 @@
import mock
from unittest import mock

import ckan.common
import ckan.model
Expand Down
2 changes: 1 addition & 1 deletion ckanext/dc_serve/tests/test_serve.py
@@ -1,6 +1,6 @@
import copy
import json
import mock
from unittest import mock
import shutil
import uuid

Expand Down

0 comments on commit 37dc374

Please sign in to comment.