Skip to content

Commit

Permalink
updated the changelog and some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
northwestwitch committed Apr 15, 2020
1 parent 7c6fcb6 commit c15a349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- Info endpoint (/) for API v1
- Add new datasets using the command line
- Update existing datasets using the command line
- Delete a dataset using the command line
6 changes: 3 additions & 3 deletions tests/cli/delete/test_delete_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_delete_existing_dataset(test_dataset_cli, mock_app, database):

dataset = test_dataset_cli

# When a dataset is inserted intp database
# When a dataset is inserted into database
result = runner.invoke(cli, [
'add',
'dataset',
Expand All @@ -41,7 +41,7 @@ def test_delete_existing_dataset(test_dataset_cli, mock_app, database):
new_dataset = database["dataset"].find_one()
assert new_dataset is not None

# If the dataset delete command is invoved providing the right database id
# If the dataset delete command is invoked providing the right database id
result = runner.invoke(cli, [
'delete',
'dataset',
Expand All @@ -52,6 +52,6 @@ def test_delete_existing_dataset(test_dataset_cli, mock_app, database):
assert result.exit_code == 0
assert "Dataset was successfully deleted" in result.output

# And the dataset should have been removed from the database
# And the dataset should be removed from the database
new_dataset = database["dataset"].find_one()
assert new_dataset is None

0 comments on commit c15a349

Please sign in to comment.