Skip to content

Commit

Permalink
remove usage of old mock (#967)
Browse files Browse the repository at this point in the history
* remove usage of old mock
* trim extraneous blank line
  • Loading branch information
a-detiste committed Mar 20, 2024
1 parent ed8b1bc commit 8fb5f02
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions docs/conf.py
Expand Up @@ -40,11 +40,7 @@
# serve to show the default.

import sys, os

try:
from unittest.mock import MagicMock
except ImportError:
from mock import Mock as MagicMock
from unittest.mock import MagicMock

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
1 change: 0 additions & 1 deletion docs/requirements-mocked.txt
@@ -1,5 +1,4 @@
# This file holds some fake requirements to fool the readthedocs service into
# building the documentation. For more information, see
# https://github.com/geopython/pycsw/issues/521
mock
sphinx
1 change: 0 additions & 1 deletion requirements-dev.txt
Expand Up @@ -2,7 +2,6 @@
-r requirements-standalone.txt

apipkg==1.4
mock==2.0.0
Paver==1.2.4
pytest==6.2.4
pytest-cov==2.12.0
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/test_util.py
Expand Up @@ -32,8 +32,8 @@
import os
import time
from pathlib import Path
from unittest import mock

import mock
import pytest
from shapely.wkt import loads

Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/test_wsgi.py
Expand Up @@ -30,9 +30,9 @@
# =================================================================
"""Unit tests for pycsw.wsgi"""

from unittest import mock
from wsgiref.util import setup_testing_defaults

import mock
import pytest

from pycsw import wsgi
Expand Down

0 comments on commit 8fb5f02

Please sign in to comment.