Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VinzentRisch committed Aug 20, 2024
1 parent 86427e1 commit 3bcb792
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
14 changes: 8 additions & 6 deletions rescript/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,15 +1301,16 @@
outputs=[('metadata', ImmutableMetadata)],
input_descriptions={},
parameter_descriptions={
'data_type': 'BV-BCR data type. Check https://www.bv-brc.org/api/doc/ for '
'documentation.',
'rql_query': 'Query in RQL format. Check https://www.bv-brc.org/api/doc/ for '
'documentation.'
'data_type': 'BV-BCR data type. Check https://www.bv-brc.org/api/doc/ '
'for documentation.',
'rql_query': 'Query in RQL format. Check '
'https://www.bv-brc.org/api/doc/ for documentation.'
},
output_descriptions={
'metadata': 'metadata'},
name='Fetch BV-BCR metadata.',
description="Fetch BV-BCR metadata for a specific data type with an RQL query.",
description="Fetch BV-BCR metadata for a specific data type with an RQL "
"query.",
)

plugin.methods.register_function(
Expand Down Expand Up @@ -1364,7 +1365,8 @@

},
name='Fetch genome features from BV-BRC.',
description='Fetch DNA and protein sequences of genome features from BV-BRC.',
description='Fetch DNA and protein sequences of genome features from '
'BV-BRC.',
)

# Registrations
Expand Down
15 changes: 0 additions & 15 deletions rescript/testing.py

This file was deleted.

4 changes: 2 additions & 2 deletions rescript/tests/test_bv_brc.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_fetch_metadata_bv_brc(self, mock_download_data,
mock_metadata.return_value = mock_metadata_instance

# Call the function
result = fetch_metadata_bv_brc(
fetch_metadata_bv_brc(
data_type="genome",
rql_query="genome_id=in(1,2)"
)
Expand Down Expand Up @@ -405,7 +405,7 @@ def test_fetch_taxonomy_bv_brc(
mock_download_data.return_value = mock_response

# Prepare mocks for file output
with patch('builtins.open', unittest.mock.mock_open()) as mock_file:
with patch('builtins.open', unittest.mock.mock_open()):
directory = fetch_taxonomy_bv_brc(
rql_query="taxon_id=in(taxon1,taxon2)",
ranks=['rank1', 'rank2'],
Expand Down

0 comments on commit 3bcb792

Please sign in to comment.