mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 15:15:38 -05:00
replace mock with unittest.mock
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user