forked from saketkc/pysradb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DaasDaham
committed
Mar 2, 2020
1 parent
c5c29c4
commit b7be4d4
Showing
5 changed files
with
105 additions
and
12 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
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,21 @@ | ||
from pysradb import SRAdb | ||
import os | ||
#db = SRAdb('SRAmetadb.sqlite') | ||
|
||
def test_list_tables(sradb_connection): | ||
fields = sradb_connection.list_fields("sqlite_sequence") | ||
print(fields) | ||
|
||
def test_changed_paths2(): | ||
wrong_filename = "SRAme'tadb2.sql.ite" | ||
path = os.path.join(os.getcwd(), "data", "{}".format(wrong_filename)) | ||
try: | ||
db = SRAdb(path) | ||
except: | ||
pass | ||
assert os.path.isfile(path) == False | ||
#assert os.path.isfile(path) == False | ||
|
||
|
||
|
||
test_changed_paths2() |
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