We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bda01b commit e27e387Copy full SHA for e27e387
1 file changed
test/test_utils.py
@@ -262,7 +262,7 @@ def test_dict_to_file() -> None:
262
263
assert not os.path.exists(created_tmp)
264
265
- with pytest.raises(ValueError):
+ with pytest.raises(AttributeError):
266
with temp_single_json(123) as _:
267
pass
268
@@ -271,10 +271,9 @@ def test_temp_inits():
271
dict_good = {'a': 0.5}
272
with temp_inits([dict_good, dict_good]) as base_file:
273
fg1 = base_file[:-5] + '_1.json'
274
- fg2 = base_file[:-5] + '_1.json'
+ fg2 = base_file[:-5] + '_2.json'
275
assert os.path.exists(fg1)
276
assert os.path.exists(fg2)
277
- assert fg1 != fg2
278
with open(fg1) as fg1_d:
279
assert json.load(fg1_d) == dict_good
280
with open(fg2) as fg2_d:
0 commit comments