Skip to content

Commit

Permalink
okey
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Sep 16, 2022
1 parent a26ae85 commit a60833b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/update_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,17 +300,23 @@ def _main():

with open(config_path, "w") as fd:
fd.write(json.dumps(config_dict, cls=BackendEncoder))
summary.conf_msg = f"conf_{name}.json okey"
summary.conf_msg = f"conf_{name}.json ok"
else:
summary.conf_msg = "backend.configuration() == None"
if props:
props_path = os.path.join(args.dir, name, "props_%s.json" % name)
with open(props_path, "w") as fd:
fd.write(json.dumps(props.to_dict(), cls=BackendEncoder))
summary.props_msg = f"props_{name}.json okey"
summary.props_msg = f"props_{name}.json ok"
else:
summary.props_msg = "backend.properties() == None"
if defs:
defs_path = os.path.join(args.dir, name, "defs_%s.json" % name)
with open(defs_path, "w") as fd:
fd.write(json.dumps(defs.to_dict(), cls=BackendEncoder))
summary.defs_msg = f"defs_{name}.json okey"
summary.defs_msg = f"defs_{name}.json ok"
else:
summary.defs_msg = "backend.defaults() == None"

print(summary.generate_summary())

Expand Down

0 comments on commit a60833b

Please sign in to comment.