mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
Fix golden tests (#199)
* remove unused functions utils.read_json and utils.write_json * increase verbosity of golden tests; detect errors in golden tests
This commit is contained in:
committed by
Scott Leishman
parent
fedb4cbd7c
commit
8672f8b542
@@ -17,7 +17,6 @@
|
||||
import importlib
|
||||
import importlib.util
|
||||
import inspect
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import signal
|
||||
@@ -85,19 +84,6 @@ def is_empty(str):
|
||||
return str == 0 or len(str.replace("'", "").replace("\"", "")) == 0
|
||||
|
||||
|
||||
def read_json(filename):
|
||||
# read json file
|
||||
with open(filename, 'r') as f:
|
||||
dict = json.loads(f.read())
|
||||
return dict
|
||||
|
||||
|
||||
def write_json(filename, dict):
|
||||
# read json file
|
||||
with open(filename, 'w') as f:
|
||||
f.write(json.dumps(dict, indent=4))
|
||||
|
||||
|
||||
def path_is_valid_dir(path):
|
||||
return os.path.isdir(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user