replace mock with unittest.mock

This commit is contained in:
Leo Hemsted
2016-08-31 12:39:11 +01:00
parent c91358673f
commit 7240df0641
4 changed files with 4 additions and 3 deletions

View File

@@ -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)