File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ def cli_info(cmd_args):
3535 else :
3636 print (
3737 f"""
38- DIALS regression data manager v{ information [' version.full' ]}
38+ DIALS regression data manager v{ information [" version.full" ]}
3939
40- repository location: { information [' repository.location' ]}
40+ repository location: { information [" repository.location" ]}
4141""" .strip ()
4242 )
4343
Original file line number Diff line number Diff line change @@ -43,20 +43,20 @@ def test_yaml_file_is_valid_definition(yaml_file):
4343 )
4444 assert definition ["data" ], "Data definition is empty"
4545 for n , entry in enumerate (definition ["data" ]):
46- assert isinstance (
47- entry , dict
48- ), f"Data definition # { n + 1 } contains non-dictionary entry: { entry !r } "
49- assert "url" in entry , f"Data definition #{ n + 1 } does not specify a URL"
46+ assert isinstance (entry , dict ), (
47+ f"Data definition # { n + 1 } contains non-dictionary entry: { entry !r } "
48+ )
49+ assert "url" in entry , f"Data definition #{ n + 1 } does not specify a URL"
5050
5151
5252@pytest .mark .parametrize (
5353 "yaml_file" , list (hashinfo_yamls .values ()), ids = list (hashinfo_yamls .keys ())
5454)
5555def test_yaml_file_is_valid_hashinfo (yaml_file ):
5656 assert is_valid_name (yaml_file )
57- assert (
58- yaml_file . name in definition_yamls
59- ), "hashinfo file present without corresponding definition file"
57+ assert yaml_file . name in definition_yamls , (
58+ "hashinfo file present without corresponding definition file"
59+ )
6060 hashinfo = yaml .safe_load (yaml_file .read_bytes ())
6161 fields = set (hashinfo )
6262 required = {"definition" , "formatversion" , "verify" }
You can’t perform that action at this time.
0 commit comments