Skip to content

Commit 180ab2d

Browse files
committed
test for PR optuna#326
1 parent a2d3915 commit 180ab2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

optunahub-registry/header_confirm.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ def header_confirm(path: str) -> None:
1818
assert post["tags"] != "", f"tags is empty in {path}"
1919
assert post["optuna_versions"] != "", f"optuna_versions is empty in {path}"
2020
assert post["license"] != "", f"license is empty in {path}"
21+
assert post["author"] != "" and post["author"] is not None, f"author is empty in {path}"
22+
assert post["title"] != "" and post["title"] is not None, f"title is empty in {path}"
23+
assert (
24+
post["description"] != "" and post["description"] is not None
25+
), f"description is empty in {path}"
26+
assert post["tags"] != "" and post["tags"] is not None, f"tags is empty in {path}"
27+
assert (
28+
post["optuna_versions"] != "" and post["optuna_versions"] is not None
29+
), f"optuna_versions is empty in {path}"
30+
assert post["license"] != "" and post["license"] is not None, f"license is empty in {path}"
2131

2232

2333
if __name__ == "__main__":

0 commit comments

Comments
 (0)