Skip to content

Commit 13b3aa6

Browse files
authored
Merge pull request #128 from NOAA-GFDL/StrictModeTesting
Quick hot fix for compval
2 parents 879099a + 174c935 commit 13b3aa6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

catalogbuilder/tests/compval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import re
1010
import math
1111
import logging
12+
from importlib.resources import files
1213
import urllib.request
1314

1415
logger = logging.getLogger('local')
@@ -147,7 +148,8 @@ def compval(json_path,json_template_path, vocab, proper_generation, test_failure
147148
if json_template_path:
148149
json_template = json.load(open(json_template_path))
149150
else:
150-
json_template = json.load(open('catalogbuilder/cats/gfdl_template.json'))
151+
jpath = files('catalogbuilder').joinpath('cats/gfdl_template.json')
152+
json_template = json.load(open(jpath))
151153

152154
#Validate JSON against JSON template
153155
comp = (diff(j,json_template))

meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: catalogbuilder
3-
version: 2.0.1
3+
version: 2.0.2
44

55
source:
66
path: .

0 commit comments

Comments
 (0)