-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ODM2/development
Development
- Loading branch information
Showing
81 changed files
with
1,337 additions
and
393,088 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,5 +86,5 @@ script: | |
- py.test | ||
|
||
# - py.test yodatool/tests | ||
# - py.test DataLoader/tests | ||
# - py.test dataloader/tests | ||
|
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,28 @@ | ||
import os | ||
|
||
from tests.test_util import build_ts_session, build_ts_specimen_session | ||
from yodatools.converter.Outputs.dbOutput import dbOutput | ||
from odm2api import ODMconnection | ||
|
||
|
||
curr_folder = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) | ||
|
||
# curr_folder = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | ||
# file_path = os.path.join(curr_folder, 'test_files', 'YODA_TimeSeriesSpecimen_RB_2014-15_pub.xlsx') | ||
class TestDb: | ||
def setup(self): | ||
|
||
# self.connection_string = 'mysql+pymysql://ODM:odm@localhost/odm2' | ||
self.connection_string = 'sqlite://' | ||
self.do = dbOutput(self.connection_string) | ||
|
||
|
||
|
||
def test_create_specimen(self): | ||
session = build_ts_specimen_session() | ||
self.do.save(session, self.connection_string) | ||
|
||
|
||
def test_create_ts(self): | ||
session = build_ts_session() | ||
self.do.save(session, self.connection_string) |
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.