Skip to content

Commit

Permalink
fixed failing python 2.7 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelandr committed Oct 23, 2017
1 parent 97fc626 commit 3d68bf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ def test_convert_command(from_path, to_path, from_format, to_format):
def test_csview_command(from_path, amino_acids, atoms, nmrstar_version):

if amino_acids == None and atoms == None:
command = "python3 -m nmrstarlib csview {} --nmrstar_version={}".format(from_path, nmrstar_version)
command = "python -m nmrstarlib csview {} --nmrstar_version={}".format(from_path, nmrstar_version)
elif amino_acids == None and atoms != None:
command = "python3 -m nmrstarlib csview {} --atoms={} --nmrstar_version={}".format(from_path, atoms, nmrstar_version)
command = "python -m nmrstarlib csview {} --at={} --nmrstar_version={}".format(from_path, atoms, nmrstar_version)
elif atoms == None and amino_acids != None:
command = "python3 -m nmrstarlib csview {} --amino_acids={} --nmrstar_version={}".format(from_path, amino_acids, nmrstar_version)
command = "python -m nmrstarlib csview {} --aa={} --nmrstar_version={}".format(from_path, amino_acids, nmrstar_version)
else:
command = "python3 -m nmrstarlib csview {} --amino_acids={} --atoms={} --nmrstar_version={}".format(from_path, amino_acids, atoms, nmrstar_version)
command = "python -m nmrstarlib csview {} --aa={} --at={} --nmrstar_version={}".format(from_path, amino_acids, atoms, nmrstar_version)

assert os.system(command) == 0

0 comments on commit 3d68bf4

Please sign in to comment.