Skip to content

Commit

Permalink
Merge pull request #182 from Autodesk/testsize
Browse files Browse the repository at this point in the history
Reduce the size of the test data files
  • Loading branch information
avirshup authored Oct 12, 2017
2 parents 6900a9c + eef42de commit 085a87a
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 13,428 deletions.
3,122 changes: 0 additions & 3,122 deletions moldesign/_tests/data/1pyn.pdb

This file was deleted.

Binary file added moldesign/_tests/data/1pyn.pdb.gz
Binary file not shown.
3,090 changes: 0 additions & 3,090 deletions moldesign/_tests/data/3ac2.pdb

This file was deleted.

Binary file added moldesign/_tests/data/3ac2.pdb.bz2
Binary file not shown.
3,108 changes: 0 additions & 3,108 deletions moldesign/_tests/data/3aid.cif

This file was deleted.

Binary file added moldesign/_tests/data/3aid.cif.bz2
Binary file not shown.
2,354 changes: 0 additions & 2,354 deletions moldesign/_tests/data/3aid.pdb

This file was deleted.

Binary file added moldesign/_tests/data/3aid.pdb.gz
Binary file not shown.
1,745 changes: 0 additions & 1,745 deletions moldesign/_tests/data/3p3k.pdb

This file was deleted.

Binary file added moldesign/_tests/data/3p3k.pdb.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion moldesign/_tests/molecule_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def fixture_wrapper(func):
# Tests around PDB ID 3AID
@typedfixture('molecule')
def pdb3aid():
mol = mdt.read(get_data_path('3aid.pdb'))
mol = mdt.read(get_data_path('3aid.pdb.gz'))
return mol


Expand Down
2 changes: 1 addition & 1 deletion moldesign/_tests/test_atom_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def fixture_wrapper(func):

@typedfixture('container')
def protein():
return mdt.read(helpers.get_data_path('3aid.pdb'))
return mdt.read(helpers.get_data_path('3aid.pdb.gz'))


@pytest.fixture
Expand Down
6 changes: 4 additions & 2 deletions moldesign/_tests/test_biopython_xface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import io
import pytest
import Bio.PDB
import moldesign as mdt
Expand All @@ -9,8 +9,10 @@

@pytest.fixture
def biopy_3aid():
import gzip
parser = Bio.PDB.PDBParser()
structure = parser.get_structure('3aid', get_data_path('3aid.pdb'))
s = gzip.open(get_data_path('3aid.pdb.gz'), 'r').read().decode('utf-8')
structure = parser.get_structure('3aid', io.StringIO(s))
return structure


Expand Down
4 changes: 2 additions & 2 deletions moldesign/_tests/test_pdb_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@pytest.fixture
def pdb_3ac2():
return mdt.read(get_data_path('3ac2.pdb'))
return mdt.read(get_data_path('3ac2.pdb.bz2'))


@pytest.fixture
Expand Down Expand Up @@ -97,7 +97,7 @@ def test_missing_residues_nmr_5b7a():

@pytest.fixture
def pdb_1pyn():
return mdt.read(get_data_path('1pyn.pdb'))
return mdt.read(get_data_path('1pyn.pdb.gz'))


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions moldesign/_tests/test_protein_primary_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def fixture_wrapper(func):

@typedfixture('3AID', 'protein')
def protease_pdb():
return mdt.read(get_data_path('3aid.pdb'))
return mdt.read(get_data_path('3aid.pdb.gz'))


@typedfixture('3AID', 'protein')
def protease_cif():
return mdt.read(get_data_path('3aid.cif'))
return mdt.read(get_data_path('3aid.cif.bz2'))


def test_chain_types(protease_pdb):
Expand Down
2 changes: 1 addition & 1 deletion moldesign/_tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_add_hydrogen_to_c2(c2_no_hydrogen_from_smiles):


def test_split_chains_3p3k():
mol = mdt.read(get_data_path('3p3k.pdb'))
mol = mdt.read(get_data_path('3p3k.pdb.gz'))
assert mol.num_chains == 1 # not really testing this, just for sanity's sake

newmol = mdt.split_chains(mol)
Expand Down

0 comments on commit 085a87a

Please sign in to comment.