1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-11-06 18:18:16 +00:00

Several changes

* Simplified setattr
* Added loading attributes in class
* Added ability to specify failing test cases in plugins
This commit is contained in:
J. Fernando Sánchez
2017-12-30 18:59:58 +01:00
parent 701f46b9f1
commit 0204e0b8e9
18 changed files with 164 additions and 180 deletions

View File

@@ -100,6 +100,7 @@ class ModelsTest(TestCase):
def test_plugins(self):
self.assertRaises(Error, plugins.Plugin)
p = plugins.Plugin({"name": "dummy",
"description": "I do nothing",
"version": 0,
"extra_params": {
"none": {
@@ -123,7 +124,9 @@ class ModelsTest(TestCase):
def test_str(self):
"""The string representation shouldn't include private variables"""
r = Results()
p = plugins.Plugin({"name": "STR test", "version": 0})
p = plugins.Plugin({"name": "STR test",
"description": "Test of private variables.",
"version": 0})
p._testing = 0
s = str(p)
assert "_testing" not in s