File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ def test_json_dumps_pretty():
67
67
assert pretty ({'WipMemBlock' : tstr }) == '{\n "WipMemBlock": "%s"\n }' % tstr
68
68
69
69
70
- def test_load_json (tmp_path , caplog ):
70
+ def test_load_json (tmpdir , caplog ):
71
71
# test invalid json
72
72
ifname = 'invalid.json'
73
- invalid_json_file = str (tmp_path / ifname )
74
- create_tree (str (tmp_path ), {ifname : u"I'm Jason Bourne" })
73
+ invalid_json_file = str (tmpdir / ifname )
74
+ create_tree (str (tmpdir ), {ifname : u"I'm Jason Bourne" })
75
75
76
76
with pytest .raises (JSONDecodeError ):
77
77
load_json (str (invalid_json_file ))
@@ -81,7 +81,7 @@ def test_load_json(tmp_path, caplog):
81
81
# test valid json
82
82
vcontent = {"secret" : "spy" }
83
83
vfname = "valid.json"
84
- valid_json_file = str (tmp_path / vfname )
84
+ valid_json_file = str (tmpdir / vfname )
85
85
save_json (valid_json_file , vcontent )
86
86
87
87
assert load_json (valid_json_file ) == vcontent
You can’t perform that action at this time.
0 commit comments