aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexanderlacuna2020-11-05 22:47:30 +0300
committerAlexanderlacuna2020-11-05 22:47:30 +0300
commit162e3e1acc1fea2548f7caa71fa3fc425c0a4ccd (patch)
tree2d07e6a6eb2d78758f36ca7702c5d4813cadf384
parent6b4bcc526c27a17f96704b54fbfa6a506b3a22f9 (diff)
downloadgenenetwork2-162e3e1acc1fea2548f7caa71fa3fc425c0a4ccd.tar.gz
remove duplicates
-rw-r--r--wqflask/tests/wqflask/show_trait/test_show_trait.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/wqflask/tests/wqflask/show_trait/test_show_trait.py b/wqflask/tests/wqflask/show_trait/test_show_trait.py
index b1a91bbe..600baefb 100644
--- a/wqflask/tests/wqflask/show_trait/test_show_trait.py
+++ b/wqflask/tests/wqflask/show_trait/test_show_trait.py
@@ -242,25 +242,6 @@ class TestTraits(unittest.TestCase):
self.assertEqual(get_genotype_scales(file_location), expected_results)
mock_get_scales.assert_called_once_with(file_location)
- @mock.patch("wqflask.show_trait.show_trait.locate_ignore_error")
- def test_get_scales_from_genofile_found(self, mock_location_ignore):
- # test no complete to be continued with
- # a .geno file
- mock_location_ignore.return_value = True
- mock_file_with_one_line = mock.mock_open(
- read_data="Some data from opened file")
-
- mock_file = """#@scale and random data:is here_returned\n
- This is second with spaced with tabs\n """
- mock_file_result = mock.mock_open(read_data=mock_file)
-
- with mock.patch("builtins.open", mock_file_with_one_line):
- result = get_scales_from_genofile("~/data/file")
- self.assertEqual(result, [['morgan', 'cM']])
-
- with mock.patch("builtins.open", mock_file_result):
- results = get_scales_from_genofile("~data/file_geno")
- self.assertEqual(results, [['physic', 'Mb']])
@mock.patch("wqflask.show_trait.show_trait.locate_ignore_error")
def test_get_scales_from_genofile_found(self, mock_ingore_location):