aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-06-04 16:49:51 +0100
committerMichael Wood <michael.g.wood@intel.com>2015-06-04 16:49:51 +0100
commit54f4f9f177686ffa016cef057f3115717839455a (patch)
treee73f14e3c5ea3e9cd73748c13320638cc6d3304f
parentff2c366377662407cb634da1e03a3999d08b31f4 (diff)
downloaderror-report-web-54f4f9f177686ffa016cef057f3115717839455a.tar.gz
error-report-web-54f4f9f177686ffa016cef057f3115717839455a.tar.bz2
error-report-web-54f4f9f177686ffa016cef057f3115717839455a.zip
tests: Move test links to run after each time data is added
It's more useful to test this after data has been added as this will cause more code paths to be tested as it will be rendering the test data that has been added Signed-off-by: Michael Wood <michael.g.wood@intel.com>
-rwxr-xr-xPost/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Post/test.py b/Post/test.py
index 3ba5676..6dc7878 100755
--- a/Post/test.py
+++ b/Post/test.py
@@ -28,6 +28,8 @@ def data_runner (func):
self.assertIsNotNone(bfo[0].LEV_DISTANCE)
+ self.after_submission_test_links()
+
return wrap
def compare_db_obj_with_payload(self, bf_object):
@@ -64,7 +66,7 @@ class SimpleTest(unittest.TestCase):
self.client = Client(HTTP_HOST="testhost")
self.client_0_3 = Client(HTTP_HOST="testhost", HTTP_USER_AGENT="send-error-report/0.3")
- def test_links(self):
+ def after_submission_test_links(self):
response = self.client.get('/Errors/Latest/')
self.assertEqual(response.status_code, 200)