Skip to content

Commit

Permalink
#150: Remove planning comments made at start of branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Nov 30, 2020
1 parent e85f378 commit 2c37baa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from datagateway_api.src.main import app


# Move this into the test defintions and let it be inherited in test classes that need
# it
class FlaskAppTest(TestCase):
"""
The FlaskAppTest Base class sets up a test client to be used to mock requests
Expand Down
2 changes: 0 additions & 2 deletions test/test_database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
)


# Common across both, needs parameterized tests for different cased names, need multiple
# tests for each filter
class TestQueryFilterFactory(TestCase):
def test_order_filter(self):
self.assertIs(
Expand Down
1 change: 0 additions & 1 deletion test/test_entityHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
)


# DB only tests
class TestEntityHelper(TestCase):
def setUp(self):
self.dataset = DATASET()
Expand Down
5 changes: 0 additions & 5 deletions test/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from test.test_base import FlaskAppTest


# Put this in test definitions, but do tests there, don't abstract out
class TestIsValidJSON(TestCase):
def test_array(self):
self.assertTrue(is_valid_json("[]"))
Expand All @@ -57,7 +56,6 @@ def test_list(self):
self.assertFalse(is_valid_json([]))


# Common for both backends, setup and teardown will be different
class TestRequiresSessionID(FlaskAppTest):
def setUp(self):
super().setUp()
Expand Down Expand Up @@ -100,7 +98,6 @@ def test_good_credentials(self):
)


# Common across both, no need to abstract out
class TestQueriesRecords(TestCase):
def test_missing_record_error(self):
@queries_records
Expand Down Expand Up @@ -168,7 +165,6 @@ def raise_bad_request_error():
self.assertEqual(400, ctx.exception.status_code)


# Common across both, no need to abstract out
class TestGetSessionIDFromAuthHeader(FlaskAppTest):
def test_no_session_in_header(self):
with self.app:
Expand All @@ -186,7 +182,6 @@ def test_with_good_header(self):
self.assertEqual("test", get_session_id_from_auth_header())


# Common across both, needs abstracting out, class per filter, multiple tests per filter
class TestGetFiltersFromQueryString(FlaskAppTest):
def test_no_filters(self):
with self.app:
Expand Down

0 comments on commit 2c37baa

Please sign in to comment.