From 9d0586f461b1995cd81ae5f9f52816049968f630 Mon Sep 17 00:00:00 2001 From: Alex Lancaster Date: Fri, 14 Jul 2017 23:01:14 -0400 Subject: [PATCH] Update tests to make test suite work again after many output changes (#4 #17 #18) --- tests/test_AlleleColon.py | 4 ++-- tests/test_GenotypeCommon.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_AlleleColon.py b/tests/test_AlleleColon.py index d7442eabf..ec855c36f 100644 --- a/tests/test_AlleleColon.py +++ b/tests/test_AlleleColon.py @@ -8,7 +8,7 @@ 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(): @@ -16,4 +16,4 @@ def test_AlleleColon_Emhaplofreq(): # 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' diff --git a/tests/test_GenotypeCommon.py b/tests/test_GenotypeCommon.py index cce89df6e..d4ff200cd 100644 --- a/tests/test_GenotypeCommon.py +++ b/tests/test_GenotypeCommon.py @@ -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'