-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
10 changed files
with
96 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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,39 @@ | ||
from egasub.submission.submitter import Submitter | ||
import os | ||
from egasub.submission.submittable import Unaligned | ||
from egasub.ega.entities.sample import Sample | ||
from egasub.ega.entities.attribute import Attribute | ||
|
||
def test_submitter(ctx, mock_server): | ||
initial_directory = os.getcwd() | ||
os.chdir('tests/data/workspace/unaligned.20170110/') | ||
unaligned = Unaligned('ssample_y') | ||
os.chdir(initial_directory) | ||
|
||
submitter = Submitter(ctx) | ||
|
||
ctx.obj['SUBMISSION']['sessionToken'] = 'X-Token' | ||
ctx.obj['SETTINGS']['icgc_project_code'] = "abjdh" | ||
#assert submitter.submit(unaligned, True) is None | ||
|
||
#attributes = [Attribute('tag1', 'value1'), Attribute('tag2', 'value2')] | ||
#sample = Sample('an alias','the title','the description',123,2,'head','test line','test region','a phenotype',33,'anonymized name',22,10,'some details',attributes,33) | ||
#assert submitter.set_icgc_ids(sample, True) is None | ||
|
||
|
||
''' | ||
def something(): | ||
with pytest.raises(CredentialsError): | ||
login(ctx) | ||
ctx.obj['SETTINGS']['ega_submitter_account'] = 'test_account' | ||
with pytest.raises(CredentialsError): | ||
login(ctx) | ||
ctx.obj['SETTINGS']['ega_submitter_password'] = 'test_password' | ||
login(ctx) | ||
assert not ctx.obj['SUBMISSION']['sessionToken'] == None | ||
assert ctx.obj['SUBMISSION']['sessionToken'] == "abcdefg" | ||
''' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from egasub.ega.entities.ega_enums import EgaEnums | ||
|
||
def test_load_enums(): | ||
e = EgaEnums() | ||
assert len(e.lookup("analysis_types")) == 3 | ||
from egasub.ega.entities.ega_enums import EgaEnums | ||
|
||
def test_load_enums(): | ||
e = EgaEnums() | ||
assert len(e.lookup("analysis_types")) == 3 |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
from egasub.submission.init_submission_dir import init_submission_dir | ||
import pytest | ||
|
||
|