Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion catalogbuilder/tests/compval.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import re
import math
import logging
from importlib.resources import files
import urllib.request

logger = logging.getLogger('local')
Expand Down Expand Up @@ -147,7 +148,8 @@ def compval(json_path,json_template_path, vocab, proper_generation, test_failure
if json_template_path:
json_template = json.load(open(json_template_path))
else:
json_template = json.load(open('catalogbuilder/cats/gfdl_template.json'))
jpath = files('catalogbuilder').joinpath('cats/gfdl_template.json')
json_template = json.load(open(jpath))

#Validate JSON against JSON template
comp = (diff(j,json_template))
Expand Down