Skip to content

Commit

Permalink
save the thing to db, no?
Browse files Browse the repository at this point in the history
  • Loading branch information
northwestwitch committed May 7, 2020
1 parent 685aeb8 commit dbd6980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgbeacon2/cli/add.py
Expand Up @@ -80,6 +80,8 @@ def dataset(id, name, build, authlevel, desc, version, url, cc, info, update):
else:
dataset_obj["created"] = datetime.datetime.now()

dataset_obj["authlevel"] = authlevel

if desc is not None:
dataset_obj["description"] = desc

Expand Down
1 change: 1 addition & 0 deletions tests/cli/add/test_add_dataset.py
Expand Up @@ -110,6 +110,7 @@ def test_add_dataset_complete(public_dataset, mock_app, database):
assert new_dataset["_id"] == dataset["_id"]
assert new_dataset["name"] == dataset["name"]
assert new_dataset["assembly_id"] == dataset["assembly_id"]
assert new_dataset["authlevel"] == dataset["authlevel"]
assert new_dataset["description"] == dataset["description"]
assert new_dataset["version"] == dataset["version"]
assert new_dataset["external_url"] == dataset["url"]
Expand Down

0 comments on commit dbd6980

Please sign in to comment.