Skip to content

Commit

Permalink
v0.10.2.dev1: remove print warning for OLS
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkorir committed Nov 20, 2023
1 parent 7ff3256 commit 7ea46cb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion sfftk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

BASE_DIR = os.path.dirname(__file__)

SFFTK_VERSION = 'v0.10.2.dev0'
SFFTK_VERSION = 'v0.10.2.dev1'
4 changes: 2 additions & 2 deletions sfftk/sff.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def handle_notes_search(args, configs):
from sfftk.notes import find
from styled import Styled
# query
warning_string = Styled("[[ 'Warning: the --start option is not working due to a fault in the OLS API; a new version will be released as soon as it is fixed'|fg-dark_orange ]]")
print_date(str(warning_string))
# warning_string = Styled("[[ 'Warning: the --start option is not working due to a fault in the OLS API; a new version will be released as soon as it is fixed'|fg-dark_orange ]]")
# print_date(str(warning_string))
resource = find.SearchResource(args, configs)
# fixme: use print_date
if not args.as_text:
Expand Down
12 changes: 6 additions & 6 deletions sfftk/test_data/sff/v0.8/output_emd_1181.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"id": 15559,
"parent_id": 0,
"biological_annotation": {
"name": "origin curtains acquisition",
"description": "Potenti, dictumstvivamus sea sapien dolore nullamauris libero. Faucibusvestibulum aptent, sed nobis aliquet venenatis primis.",
"number_of_instances": 312,
"name": "gleam center ray",
"description": "Eirmod rhoncusmaecenas himenaeos ipsumcurabitur, clita magnainteger proin. Aptent nibh antesuspendisse rebum, himenaeos quam nec lacinia nihil lacus turpis iaculis dui.",
"number_of_instances": 98,
"external_references": [
{
"id": 0,
"resource": "neck",
"url": "implantation",
"accession": "articles",
"resource": "web",
"url": "passbook",
"accession": "moves",
"label": null,
"description": null
}
Expand Down
8 changes: 4 additions & 4 deletions sfftk/test_data/sff/v0.8/output_emd_1181.sff
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<segment_list>
<segment id="15559" parent_id="0">
<biological_annotation>
<name>stresses width airs</name>
<description>Pellentesque consequat semper nec massaphasellus nullam. Illum vitae ipsumcurabitur euismod elitduis.</description>
<name>construction tubing debt</name>
<description>Ametduis vestibulumnulla taciti sea, euismod quisque nec consetetur. Doming magnainteger dui iaculis justo, no muspellentesque tempus.</description>
<external_references>
<ref id="0" resource="qualification" url="linkages" accession="expansion"/>
<ref id="0" resource="provisions" url="analyzers" accession="habits"/>
</external_references>
<number_of_instances>789</number_of_instances>
<number_of_instances>384</number_of_instances>
</biological_annotation>
<colour>
<red>0.921817600727081</red>
Expand Down
5 changes: 2 additions & 3 deletions sfftk/unittests/test_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ def test_search_no_results(self):
results = resource.search()
print(results.structured_response)
if results is not None:
self.assertEqual(371, len(results))
self.assertTrue(len(results) > 0)
else:
self.stderr(
"Warning: unable to run test on response due to API issue to {url}".format(url=resource.get_url()))
Expand Down Expand Up @@ -2390,8 +2390,7 @@ def test_search_from_start(self):
resource = find.SearchResource(args, configs)
results = resource.search()
if results is not None:
# self.assertGreaterEqual(results.structured_response['response']['start'], random_start - 1)
pass
self.assertGreaterEqual(results.structured_response['response']['start'], random_start - 1)
else:
self.stderr(
"Warning: unable to run test on response due to API issue to {url}".format(url=resource.get_url()))
Expand Down

0 comments on commit 7ea46cb

Please sign in to comment.