mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
replace mock with unittest.mock
This commit is contained in:
@@ -3,7 +3,7 @@ from datetime import datetime
|
||||
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
from mock import ANY
|
||||
from unittest.mock import ANY
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
from flask import json
|
||||
import jsonschema
|
||||
|
||||
|
||||
def validate(json_string, schema_filename):
|
||||
schema_dir = os.path.join(os.path.dirname(__file__), 'schemas')
|
||||
resolver = jsonschema.RefResolver('file://' + schema_dir + '/', None)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from mock import ANY
|
||||
from unittest.mock import ANY
|
||||
|
||||
from app.statsd_decorators import statsd
|
||||
import app
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
import boto3
|
||||
import mock
|
||||
from unittest import mock
|
||||
import pytest
|
||||
from alembic.command import upgrade
|
||||
from alembic.config import Config
|
||||
|
||||
Reference in New Issue
Block a user