climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [5/8] git commit: CLIMATE-416 - Remove web services init test
Date Sat, 10 May 2014 19:13:52 GMT
CLIMATE-416 - Remove web services init test

- The initialization test in run_webservices was not especially useful.
  It would simply check if it got a 200 back from requesting the UI's
  index. Additionally, if the frontend was not symlinked in the location
  that the backend expected the test would break. In light of this, the
  test has been removed. The other tests which setup a faux backend are
  sufficient to ensure that initialization is correct while also not
  being as brittle.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/042c9d3a
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/042c9d3a
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/042c9d3a

Branch: refs/heads/master
Commit: 042c9d3a28213c5d6af7a7dd2096c787027d2516
Parents: 7926286
Author: Michael Joyce <joyce@apache.org>
Authored: Fri May 9 11:35:40 2014 -0700
Committer: Michael Joyce <joyce@apache.org>
Committed: Fri May 9 11:35:40 2014 -0700

----------------------------------------------------------------------
 ocw-ui/backend/tests/test_run_webservices.py | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/042c9d3a/ocw-ui/backend/tests/test_run_webservices.py
----------------------------------------------------------------------
diff --git a/ocw-ui/backend/tests/test_run_webservices.py b/ocw-ui/backend/tests/test_run_webservices.py
index c0d754b..b2ebef4 100644
--- a/ocw-ui/backend/tests/test_run_webservices.py
+++ b/ocw-ui/backend/tests/test_run_webservices.py
@@ -6,12 +6,6 @@ from ..run_webservices import app
 
 test_app = TestApp(app)
 
-class TestInitialization(unittest.TestCase):
-    def test_status_page(self):
-        response = test_app.get('/')
-
-        self.assertEqual(response.status_int, 200)
-
 class TestStaticEvalResults(unittest.TestCase):
     @classmethod
     def setUpClass(self):


Mime
View raw message