Skip to content

Commit

Permalink
Merge pull request #23 from EBI-Metagenomics/develop
Browse files Browse the repository at this point in the history
Merge - run_reads status_id field
  • Loading branch information
mberacochea authored Jun 10, 2022
2 parents 281cbcc + 21ccba1 commit dd31a7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ena_portal_api/ena_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"sample_title",
"sample_description",
"first_public",
"status_id",
]
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import sys

version = "1.2.0"
version = "1.2.1"

_base = os.path.dirname(os.path.abspath(__file__))
_requirements = os.path.join(_base, "requirements.txt")
Expand Down
6 changes: 3 additions & 3 deletions tests/test_ena_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_get_run_should_retrieve_run_all_fields(self):
ena = ena_handler.EnaApiHandler()
run = ena.get_run("ERR1701760")
assert isinstance(run, dict)
assert 21 == len(run)
assert 22 == len(run)

def test_get_run_should_retrieve_run_filtered_fields(self):
ena = ena_handler.EnaApiHandler()
Expand All @@ -170,15 +170,15 @@ def test_get_study_runs_should_have_all_fields(self):
runs = ena.get_study_runs("SRP125161")
assert len(runs) == 4
for run in runs:
assert 21 == len(run)
assert 22 == len(run)
assert isinstance(run, dict)

def test_get_study_runs_should_have_filter_run_accessions(self):
ena = ena_handler.EnaApiHandler()
runs = ena.get_study_runs("SRP125161", filter_accessions=["SRR6301444"])
assert len(runs) == 1
for run in runs:
assert 21 == len(run)
assert 22 == len(run)
assert isinstance(run, dict)

@patch("ena_portal_api.ena_handler.EnaApiHandler.post_request")
Expand Down

0 comments on commit dd31a7b

Please sign in to comment.