diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/mygpoclient/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/mygpoclient/files')
-rw-r--r-- | dev-python/mygpoclient/files/tests.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/mygpoclient/files/tests.patch b/dev-python/mygpoclient/files/tests.patch new file mode 100644 index 000000000000..041cee501a00 --- /dev/null +++ b/dev-python/mygpoclient/files/tests.patch @@ -0,0 +1,34 @@ +diff -ur mygpoclient-1.7.orig/mygpoclient/locator_test.py mygpoclient-1.7/mygpoclient/locator_test.py +--- mygpoclient-1.7.orig/mygpoclient/locator_test.py 2013-02-08 19:39:32.000000000 +0800 ++++ mygpoclient-1.7/mygpoclient/locator_test.py 2013-03-09 23:33:37.137651841 +0800 +@@ -16,7 +16,7 @@ + # along with this program. If not, see <http://www.gnu.org/licenses/>. + + from mygpoclient import locator +-import unittest ++import unittest, sys + + class Test_Exceptions(unittest.TestCase): + def setUp(self): +@@ -54,18 +54,21 @@ + podcast='http://example.org/episodes.rss', + device_id='gpodder') + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_device_settings_uri_exception(self): + """Test if using no parameter for a device Setting raises a ValueError""" + self.assertRaises(ValueError, + self.locator.settings_uri, type='device', + scope_param1=None, scope_param2=None) + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_podcast_settings_uri_exception(self): + """Test if using no parameter for a podcast Setting raises a ValueError""" + self.assertRaises(ValueError, + self.locator.settings_uri, type='podcast', + scope_param1=None, scope_param2=None) + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_episode_settings_uri_exception(self): + """Test if only using one parameter for a episode Setting raises a ValueError""" + self.assertRaises(ValueError, |