Commit 2b05be3b authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Refseq can have several entries with same strain. Take into account in tests

parent a97016e3
Pipeline #71595 failed with stages
in 60 minutes
......@@ -318,7 +318,7 @@ def test_download_specify_strains(caplog):
# Check path to uncompressed files is as expected
assert db_dir == os.path.join(outdir, "Database_init")
# Check number of genomes downloaded
assert nb_gen == 4
assert nb_gen >= 4 # there can be several genomes with same strain and spe_taxid (1 complete and one contigs for example)
# And that db_dir exists and contains nb_gen files
assert os.path.isdir(db_dir)
assert len(os.listdir(db_dir)) == nb_gen
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment