Skip to content

Commit

Permalink
fix failed tests caused by the new version of jsonschema
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Mar 13, 2024
1 parent 7427130 commit 95d628b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tests/schemas/test_genome_bgc_mappings_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
"data, expected",
[
[data_no_mappings, "'mappings' is a required property"],
[data_empty_mappings, "[] is too short"],
[data_empty_mappings, "[] should be non-empty"],
[data_no_genome_id, "'genome_ID' is a required property"],
[data_empty_genome_id, "'' is too short"],
[data_empty_genome_id, "'' should be non-empty"],
[data_invalid_genome_id, "1 is not of type 'string'"],
[data_no_bgc_id, "'BGC_ID' is a required property"],
[data_empty_bgc_id_list, "[] is too short"],
[data_empty_bgc_id, "'' is too short"],
[data_empty_bgc_id_list, "[] should be non-empty"],
[data_empty_bgc_id, "'' should be non-empty"],
[data_invalid_bgc_id, "1 is not of type 'string'"],
[data_duplicate_bgc_id, "['bgc1', 'bgc1'] has non-unique elements"],
[data_no_version, "'version' is a required property"],
Expand Down
4 changes: 2 additions & 2 deletions tests/schemas/test_genome_status_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
"data, expected",
[
[data_no_genome_status, "'genome_status' is a required property"],
[data_empty_genome_status, "[] is too short"],
[data_empty_genome_status, "[] should be non-empty"],
[data_no_original_id, "'original_id' is a required property"],
[data_empty_original_id, "'' is too short"],
[data_empty_original_id, "'' should be non-empty"],
[data_invalid_original_id, "1 is not of type 'string'"],
[data_no_resolved_refseq_id, "'resolved_refseq_id' is a required property"],
[data_invalid_resolved_refseq_id, "1 is not of type 'string'"],
Expand Down
8 changes: 4 additions & 4 deletions tests/schemas/test_strain_mappings_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
"data, expected",
[
[data_no_mappings, "'strain_mappings' is a required property"],
[data_empty_mappings, "[] is too short"],
[data_empty_mappings, "[] should be non-empty"],
[data_no_strain_id, "'strain_id' is a required property"],
[data_empty_strain_id, "'' is too short"],
[data_empty_strain_id, "'' should be non-empty"],
[data_invalid_strain_id, "1 is not of type 'string'"],
[data_no_strain_alias, "'strain_alias' is a required property"],
[data_empty_strain_alias_list, "[] is too short"],
[data_empty_strain_alias, "'' is too short"],
[data_empty_strain_alias_list, "[] should be non-empty"],
[data_empty_strain_alias, "'' should be non-empty"],
[data_invalid_strain_alias, "1 is not of type 'string'"],
[data_duplicate_strain_alias, "['alias1', 'alias1'] has non-unique elements"],
[data_no_version, "'version' is a required property"],
Expand Down
2 changes: 1 addition & 1 deletion tests/schemas/test_user_strains_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"data, expected",
[
[data_no_strain_ids, "'strain_ids' is a required property"],
[data_empty_strain_ids, "[] is too short"],
[data_empty_strain_ids, "[] should be non-empty"],
[data_invalid_strain_ids, "1 is not of type 'string'"],
[data_empty_version, "'' is not one of ['1.0']"],
[data_invalid_version, "'1.0.0' is not one of ['1.0']"],
Expand Down

0 comments on commit 95d628b

Please sign in to comment.