beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject [1/2] beam git commit: Remove the nose-parameterized dependency
Date Wed, 22 Feb 2017 22:18:40 GMT
Repository: beam
Updated Branches:
  refs/heads/master d44f5b84f -> e38a4803d


Remove the nose-parameterized dependency


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/5c21d08d
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/5c21d08d
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/5c21d08d

Branch: refs/heads/master
Commit: 5c21d08d5343c9d0dac0bc672351bd2e82e22c50
Parents: d44f5b8
Author: Ahmet Altay <altay@google.com>
Authored: Wed Feb 22 13:19:57 2017 -0800
Committer: Ahmet Altay <altay@google.com>
Committed: Wed Feb 22 13:26:52 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/coders/standard_coders_test.py | 11 +++++++----
 sdks/python/setup.py                                   |  1 -
 2 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/5c21d08d/sdks/python/apache_beam/coders/standard_coders_test.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/coders/standard_coders_test.py b/sdks/python/apache_beam/coders/standard_coders_test.py
index 9df81ac..e26d2c8 100644
--- a/sdks/python/apache_beam/coders/standard_coders_test.py
+++ b/sdks/python/apache_beam/coders/standard_coders_test.py
@@ -19,6 +19,7 @@
 """
 
 import json
+import logging
 import os.path
 import sys
 import unittest
@@ -32,8 +33,6 @@ from apache_beam.utils.timestamp import Timestamp
 from apache_beam.transforms.window import IntervalWindow
 from apache_beam.transforms import window
 
-from nose_parameterized import parameterized
-
 STANDARD_CODERS_YAML = os.path.join(
     os.path.dirname(__file__), '..', 'tests', 'data', 'standard_coders.yaml')
 
@@ -82,8 +81,12 @@ class StandardCodersTest(unittest.TestCase):
               tuple([window_parser(w) for w in x['windows']]))
   }
 
-  @parameterized.expand(_load_test_cases(STANDARD_CODERS_YAML))
-  def test_standard_coder(self, name, spec):
+  def test_standard_coders(self):
+    for name, spec in _load_test_cases(STANDARD_CODERS_YAML):
+      logging.info('Executing %s test.', name)
+      self._run_standard_coder(name, spec)
+
+  def _run_standard_coder(self, name, spec):
     coder = self.parse_coder(spec['coder'])
     parse_value = self.json_value_parser(spec['coder'])
     nested_list = [spec['nested']] if 'nested' in spec else [True, False]

http://git-wip-us.apache.org/repos/asf/beam/blob/5c21d08d/sdks/python/setup.py
----------------------------------------------------------------------
diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index 1dd0031..bb2ad10 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -97,7 +97,6 @@ REQUIRED_PACKAGES = [
     ]
 
 REQUIRED_TEST_PACKAGES = [
-    'nose-parameterized>=0.5.0,<0.6.0',
     'pyhamcrest>=1.9,<2.0',
     ]
 


Mime
View raw message