Skip to content

Commit

Permalink
Update tests to make test suite work again after many output changes (#4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlancaster committed Jul 15, 2017
1 parent 3ab46d3 commit 9d0586f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_AlleleColon.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def test_AlleleColon_HardyWeinberg():
# check exit code
assert exit_code == 0
# compare with md5sum of output file
assert hashlib.md5(open("Test_Allele_Colon_HardyWeinberg-out.txt", 'rb').read()).hexdigest() == '3b4fef611f7a5897cc649b6bb5bbbcda'
assert hashlib.md5(open("Test_Allele_Colon_HardyWeinberg-out.txt", 'rb').read()).hexdigest() == '4010f4fa7598163803b6c5abd78fcfd1'

def test_AlleleColon_Emhaplofreq():

exit_code = base.run_pypop_process('./tests/data/Test_Allele_Colon_Emhaplofreq.ini', './tests/data/Test_Allele_Colon_Emhaplofreq.pop')
# check exit code
assert exit_code == 0
# compare with md5sum of output file
assert hashlib.md5(open("Test_Allele_Colon_Emhaplofreq-out.txt", 'rb').read()).hexdigest() == 'c262cf621f18e53895d3522e90c3804b'
assert hashlib.md5(open("Test_Allele_Colon_Emhaplofreq-out.txt", 'rb').read()).hexdigest() == '598954bfe301d5dea44ccd4d443905d1'
4 changes: 2 additions & 2 deletions tests/test_GenotypeCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def test_GenotypeCommon_HardyWeinberg():
# check exit code
assert exit_code == 0
# compare with md5sum of output file
assert hashlib.md5(open("BIGDAWG_SynthControl_Data-out.txt", 'rb').read()).hexdigest() == '276263b0d0d9fc03b77826388d70510d'
assert hashlib.md5(open("BIGDAWG_SynthControl_Data-out.txt", 'rb').read()).hexdigest() == 'c0f35b5b30ed20211fd37ff0a6021061'

def test_GenotypeCommonDash_HardyWeinberg():
exit_code = base.run_pypop_process('./tests/data/WS_BDCtrl_Test_HW.ini', './tests/data/BIGDAWG_SynthControl_Data_dash.pop')
# check exit code
assert exit_code == 0
# compare with md5sum of output file
assert hashlib.md5(open("BIGDAWG_SynthControl_Data_dash-out.txt", 'rb').read()).hexdigest() == 'b0f4247a2a67a65d0109b6448427cc28'
assert hashlib.md5(open("BIGDAWG_SynthControl_Data_dash-out.txt", 'rb').read()).hexdigest() == '7dce2213b3ec0109ed232b40d71ad961'

0 comments on commit 9d0586f

Please sign in to comment.