Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
2017d388
Commit
2017d388
authored
Mar 30, 2014
by
John Chodera (MSKCC)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refined testing.
parent
0e7ae464
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
.travis.yml
+1
-1
tests/test_build_and_simulate.py
+5
-3
No files found.
.travis.yml
View file @
2017d388
...
...
@@ -11,7 +11,7 @@ install:
script
:
-
python setup.py install
-
cd tests
-
nosetests
-
nosetests
--with-doctest
after_script
:
-
pyflakes pdbfixer/*.py
...
...
tests/test_build_and_simulate.py
View file @
2017d388
...
...
@@ -93,8 +93,12 @@ def test_build_and_simulate():
# DEBUG: A few small test cases.
pdbcodes_to_build
=
[
'110D'
,
'116D'
,
'117D'
,
'118D'
,
'134D'
,
'135D'
,
'136D'
,
'138D'
,
'143D'
,
'148D'
,
'151D'
,
'152D'
,
'159D'
,
'177D'
,
'17RA'
,
'183D'
,
'184D'
,
'186D'
,
'187D'
,
'188D'
,
'189D'
,
'1A11'
,
'1A13'
,
'1A1P'
,
'1A3P'
,
'1A51'
,
'1A60'
,
'1A83'
,
'1A9L'
,
'1AAF'
,
'1AB1'
,
'1ABZ'
,
'1AC7'
,
'1ACW'
,
'1AD7'
,
'1ADX'
,
'1AFP'
,
'1AFT'
,
'1AFX'
,
'1AG7'
,
'1AGG'
,
'1AGL'
,
'1AGT'
,
'1AHL'
,
'1AIE'
,
'1AJ1'
,
'1AJF'
,
'1AJJ'
,
'1AJU'
,
'1AKG'
,
'1AKX'
,
'1AL1'
,
'1ALE'
,
'1ALF'
,
'1ALG'
,
'1AM0'
,
'1AMB'
,
'1AMC'
,
'1AML'
,
'1ANP'
,
'1ANR'
,
'1ANS'
,
'1AO9'
,
'1AOO'
]
# Also simulate these tests.
pdbcodes_to_simulate
=
pdbcodes_to_build
# Keep track of list of failures.
failures
=
list
()
for
pdbcode
in
pdbcodes_to_build
:
print
"------------------------------------------------"
print
pdbcode
...
...
@@ -110,9 +114,6 @@ def test_build_and_simulate():
positiveIon
=
'Na+'
negativeIon
=
'Cl-'
# Keep track of list of failures.
failures
=
list
()
outfile
=
tempfile
.
NamedTemporaryFile
(
mode
=
'w'
,
delete
=
False
)
output_pdb_filename
=
outfile
.
name
...
...
@@ -195,6 +196,7 @@ def test_build_and_simulate():
print
""
raise
Exception
(
"Build test failed on one or more PDB files."
)
else
:
print
"All tests succeeded."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment