Skip to content

Commit

Permalink
general updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen2x committed May 12, 2017
1 parent 4bbf7c2 commit 9bb3b5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tests/submission/test_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_submit_dataset(ctx, mock_server):

ctx.obj['SETTINGS']['ega_submitter_account'] = 'test_account'
ctx.obj['SETTINGS']['ega_submitter_password'] = 'test_password'
#['_enums']['dataset_types']['response']['result']


#submit_dataset(ctx)

Expand Down
20 changes: 2 additions & 18 deletions tests/submission/test_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,8 @@ def test_submitter(ctx, mock_server):
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)
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"
'''
3 changes: 1 addition & 2 deletions tests/submission/test_variation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def test_variation():

assert variation.files == variation.analysis.files

#change assert
assert variation.local_validate(EgaEnums()) == None
variation.local_validate(EgaEnums())

os.chdir(initial_directory)

2 changes: 1 addition & 1 deletion tests/test_ega_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

def test_load_enums():
e = EgaEnums()
assert len(e.lookup("analysis_types")) == 3
assert isinstance(e.lookup("analysis_types"), list)

0 comments on commit 9bb3b5c

Please sign in to comment.