You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2015/04/09 21:23:39 UTC

trafficserver-qa git commit: Fix syntax and missing imports

Repository: trafficserver-qa
Updated Branches:
  refs/heads/master ed2281264 -> 1e7b648b3


Fix syntax and missing imports


Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/1e7b648b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/1e7b648b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/1e7b648b

Branch: refs/heads/master
Commit: 1e7b648b3ed9210c0ac1f4310cfc1677b154bbfb
Parents: ed22812
Author: Thomas Jackson <ja...@apache.org>
Authored: Thu Apr 9 12:23:07 2015 -0700
Committer: Thomas Jackson <ja...@apache.org>
Committed: Thu Apr 9 12:23:07 2015 -0700

----------------------------------------------------------------------
 examples/endpoint_cases.py      | 4 +++-
 examples/environment_cases.py   | 2 ++
 examples/environment_helpers.py | 1 +
 examples/skip_examples.py       | 1 +
 4 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/1e7b648b/examples/endpoint_cases.py
----------------------------------------------------------------------
diff --git a/examples/endpoint_cases.py b/examples/endpoint_cases.py
index 66ca6a6..fdc950d 100644
--- a/examples/endpoint_cases.py
+++ b/examples/endpoint_cases.py
@@ -16,6 +16,8 @@ Examples of how to use DynamicHTTPEndpointCase
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
+import tsqa.test_cases
+import requests
 
 
 class TestDynamicHTTPEndpointCase(tsqa.test_cases.DynamicHTTPEndpointCase):
@@ -39,7 +41,7 @@ class TestDynamicHTTPEndpointCase(tsqa.test_cases.DynamicHTTPEndpointCase):
 
         self.assertEqual(self.endpoint_url('/foo'), 'http://127.0.0.1:{0}/foo'.format(self.http_endpoint.address[1]))
 
-    def test_with_endpoint():
+    def test_with_endpoint(self):
         '''
         You can register custom handlers to the http_endpoint
         '''

http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/1e7b648b/examples/environment_cases.py
----------------------------------------------------------------------
diff --git a/examples/environment_cases.py b/examples/environment_cases.py
index 8f33b2a..6f202f6 100644
--- a/examples/environment_cases.py
+++ b/examples/environment_cases.py
@@ -16,6 +16,8 @@ Examples of how to use EnvironmentCase
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
+import tsqa.test_cases
+import requests
 
 
 class HelloWorld(tsqa.test_cases.EnvironmentCase):

http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/1e7b648b/examples/environment_helpers.py
----------------------------------------------------------------------
diff --git a/examples/environment_helpers.py b/examples/environment_helpers.py
index bb37a31..304ae80 100644
--- a/examples/environment_helpers.py
+++ b/examples/environment_helpers.py
@@ -18,6 +18,7 @@ which will override the getEnv() method.
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
+import tsqa.test_cases
 
 
 class HelperEnvironmentCase(tsqa.test_cases.EnvironmentCase):

http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/1e7b648b/examples/skip_examples.py
----------------------------------------------------------------------
diff --git a/examples/skip_examples.py b/examples/skip_examples.py
index d972e37..e7c9ccc 100644
--- a/examples/skip_examples.py
+++ b/examples/skip_examples.py
@@ -17,6 +17,7 @@ Examples of how to skip tests
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
+import helpers
 
 
 class SkipEntireClass(helpers.EnvironmentCase):