mirror of
				https://github.com/gsi-upm/senpy
				synced 2025-10-30 23:18:17 +00:00 
			
		
		
		
	| @@ -40,6 +40,9 @@ | |||||||
|     "plugins": { |     "plugins": { | ||||||
|       "@container": "@list" |       "@container": "@list" | ||||||
|     }, |     }, | ||||||
|  |     "options": { | ||||||
|  |       "@container": "@set" | ||||||
|  |     }, | ||||||
|     "prov:wasGeneratedBy": { |     "prov:wasGeneratedBy": { | ||||||
|       "@type": "@id" |       "@type": "@id" | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -97,7 +97,15 @@ class ModelsTest(TestCase): | |||||||
|  |  | ||||||
|     def test_plugins(self): |     def test_plugins(self): | ||||||
|         self.assertRaises(Error, plugins.Plugin) |         self.assertRaises(Error, plugins.Plugin) | ||||||
|         p = plugins.Plugin({"name": "dummy", "version": 0}) |         p = plugins.Plugin({"name": "dummy", | ||||||
|  |                             "version": 0, | ||||||
|  |                             "extra_params": { | ||||||
|  |                                 "none": { | ||||||
|  |                                     "options": ["es", ], | ||||||
|  |                                     "required": False, | ||||||
|  |                                     "default": "0" | ||||||
|  |                                 } | ||||||
|  |                             }}) | ||||||
|         c = p.jsonld() |         c = p.jsonld() | ||||||
|         assert "info" not in c |         assert "info" not in c | ||||||
|         assert "repo" not in c |         assert "repo" not in c | ||||||
| @@ -105,6 +113,8 @@ class ModelsTest(TestCase): | |||||||
|         logging.debug("Framed:") |         logging.debug("Framed:") | ||||||
|         logging.debug(c) |         logging.debug(c) | ||||||
|         p.validate() |         p.validate() | ||||||
|  |         assert "es" in c['extra_params']['none']['options'] | ||||||
|  |         assert isinstance(c['extra_params']['none']['options'], list) | ||||||
|  |  | ||||||
|     def test_str(self): |     def test_str(self): | ||||||
|         """The string representation shouldn't include private variables""" |         """The string representation shouldn't include private variables""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user