diff options
author | BonfaceKilz | 2021-05-08 16:11:20 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-08 16:11:20 +0300 |
commit | 1afece5464520700901cbde19599ac45222ea58f (patch) | |
tree | 0710929275688299f9e102e9de84cc85e35ac7fa /wqflask/tests/unit | |
parent | 809351ae0021f48b8a138212764aab4396f564ef (diff) | |
download | genenetwork2-1afece5464520700901cbde19599ac45222ea58f.tar.gz |
tests: test_gen_menu: Remove app_context initialisation
This is no longer required since the global object "Flask.g.db" is no
longer coupled to the gen_menu module.
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r-- | wqflask/tests/unit/wqflask/api/test_gen_menu.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/wqflask/tests/unit/wqflask/api/test_gen_menu.py b/wqflask/tests/unit/wqflask/api/test_gen_menu.py index d0cd647a..743b3bde 100644 --- a/wqflask/tests/unit/wqflask/api/test_gen_menu.py +++ b/wqflask/tests/unit/wqflask/api/test_gen_menu.py @@ -2,7 +2,6 @@ import unittest from unittest import mock -from wqflask import app from wqflask.api.gen_menu import gen_dropdown_json from wqflask.api.gen_menu import get_species from wqflask.api.gen_menu import get_groups @@ -18,8 +17,6 @@ class TestGenMenu(unittest.TestCase): """Tests for the gen_menu module""" def setUp(self): - self.app_context = app.app_context() - self.app_context.push() self.test_group = { 'mouse': [ ['H_T1', @@ -70,9 +67,6 @@ class TestGenMenu(unittest.TestCase): } } - def tearDown(self): - self.app_context.pop() - def test_get_species(self): """Test that assertion is raised when dataset and dataset_name are defined""" |