aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-04 23:56:32 +0300
committerBonfaceKilz2021-05-05 12:26:04 +0300
commit3f0d45848280b77a35a569682e93291204769cc8 (patch)
treeab7d03055ec8497fa8835ce7c56107173a47c5ac /wqflask
parent941680d5266159fc5c9f2a65131bf283bd1cef1d (diff)
downloadgenenetwork2-3f0d45848280b77a35a569682e93291204769cc8.tar.gz
tests: test_species: Update failing tests
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/tests/unit/base/test_species.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/wqflask/tests/unit/base/test_species.py b/wqflask/tests/unit/base/test_species.py
index 487bbd7f..9b5c023c 100644
--- a/wqflask/tests/unit/base/test_species.py
+++ b/wqflask/tests/unit/base/test_species.py
@@ -81,17 +81,17 @@ class TestChromosomes(unittest.TestCase):
]
mock_dataset = MockDataset(MockGroup("Random"))
test_chromosomes = Chromosomes(dataset=mock_dataset)
+ self.assertEqual(
+ list(test_chromosomes.chromosomes.keys()),
+ [1, 2, 3]
+ )
+ self.assertEqual(test_chromosomes.dataset, mock_dataset)
mock_db.db.execute.assert_called_with(
"SELECT Chr_Length.Name, Chr_Length.OrderId, Length "
"FROM Chr_Length, InbredSet WHERE "
"Chr_Length.SpeciesId = InbredSet.SpeciesId AND "
"InbredSet.Name = 'Random' ORDER BY OrderId"
)
- self.assertEqual(
- list(test_chromosomes.chromosomes.keys()),
- [1, 2, 3]
- )
- self.assertEqual(test_chromosomes.dataset, mock_dataset)
@mock.patch("base.species.g")
def test_create_chromosomes_with_species(self, mock_db):
@@ -104,13 +104,13 @@ class TestChromosomes(unittest.TestCase):
mock_dataset = MockDataset(MockGroup("Random"))
test_chromosomes = Chromosomes(dataset=mock_dataset,
species="testSpecies")
+ self.assertEqual(
+ list(test_chromosomes.chromosomes.keys()),
+ [1, 2, 3]
+ )
mock_db.db.execute.assert_called_with(
"SELECT Chr_Length.Name, Chr_Length.OrderId, Length "
"FROM Chr_Length, Species WHERE "
"Chr_Length.SpeciesId = Species.SpeciesId AND "
"Species.Name = 'Testspecies' ORDER BY OrderId"
)
- self.assertEqual(
- list(test_chromosomes.chromosomes.keys()),
- [1, 2, 3]
- )