mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
Merge 8c7cd5a74b
into dcb95265ac
This commit is contained in:
commit
32b3afc7bb
4 changed files with 96 additions and 2 deletions
|
@ -427,3 +427,14 @@ def assert_equal_Obs(to, ro):
|
|||
print(kw, "does not match.")
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def test_meas_uuid(tmp_path):
|
||||
meas = pe.Meas(0.3, 0.2)
|
||||
|
||||
for obs in [meas, meas + 1, meas * pe.pseudo_Obs(0.1, 0.001, "obs|r1")]:
|
||||
with pytest.raises(ValueError):
|
||||
jsonio.dump_to_json([obs], "test_file", indent=1, description='[This file should not be writable]')
|
||||
|
||||
name_meas = pe.Meas(0.3, 0.2, name="my name")
|
||||
jsonio.dump_to_json([name_meas], "test_file", indent=1, description='[This file should be writable]')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue