-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix and test for fix * check cached server * lint -improved exception
- Loading branch information
1 parent
67adcf5
commit e2ffaf0
Showing
2 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
###################################### | ||
# Initial start for function based unit tests | ||
# need to set this up using a proper testing framework | ||
###################################### | ||
|
||
import os | ||
import sys | ||
|
||
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) | ||
|
||
from extract_galaxy_tools import ( | ||
check_tools_on_servers, | ||
USEGALAXY_SERVER_URLS, | ||
) | ||
|
||
server_url = USEGALAXY_SERVER_URLS["UseGalaxy.eu"] | ||
tool_ids = ["abricate"] | ||
|
||
count = check_tools_on_servers(tool_ids, server_url) | ||
print(count) | ||
|
||
tool_ids = ["bla"] | ||
count = check_tools_on_servers(tool_ids, server_url) | ||
print(count) | ||
|
||
server_url = "https://jolo.eu" | ||
tool_ids = ["bla"] | ||
count = check_tools_on_servers(tool_ids, server_url) | ||
print(count) | ||
|
||
# test the cache ! | ||
server_url = "https://jolo.eu" | ||
tool_ids = ["bla", "blub"] | ||
count = check_tools_on_servers(tool_ids, server_url) | ||
print(count) |