-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print helpful error when metadata has invalid id
Adds a functional test for how we'd like augur export v2 to behave when the user provides metadata without a valid id and then updates the try/except block in export_v2 to catch and print the error from `read_metadata` when it occurs. While we're at it, this commit also prints the error for missing metadata file to stderr instead of stdout.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/functional/export_v2/dataset1_metadata_without_valid_id.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
invalid_id div mutation_length | ||
tipA 1 1 | ||
tipB 3 1 | ||
tipC 3 1 | ||
tipD 8 3 | ||
tipE 9 4 | ||
tipF 6 1 |