diff options
author | Munyoki Kilyungi | 2022-09-05 15:09:58 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-08 14:26:19 +0300 |
commit | 597f420b31484133cb1e76ba5bf4dff99c773e50 (patch) | |
tree | c9a158ba31e4892af31f4dd901041fd2beb5720e /wqflask | |
parent | 07a10a5d70e16fa1f0db4682848fd61fdff5ddf0 (diff) | |
download | genenetwork2-597f420b31484133cb1e76ba5bf4dff99c773e50.tar.gz |
Add extra distinct_values and id attributes to test TraitObject
* wqflask/tests/wqflask/show_trait/test_show_trait.py (TraitObject):
Add self.id and self.distinct_values.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/tests/wqflask/show_trait/test_show_trait.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/tests/wqflask/show_trait/test_show_trait.py b/wqflask/tests/wqflask/show_trait/test_show_trait.py index b18f8d0a..8dbbb77b 100644 --- a/wqflask/tests/wqflask/show_trait/test_show_trait.py +++ b/wqflask/tests/wqflask/show_trait/test_show_trait.py @@ -14,8 +14,11 @@ from wqflask.show_trait.show_trait import get_scales_from_genofile class TraitObject: def __init__(self, obj): + self.distinct_values = [] + self.id = "" for key, value in obj.items(): setattr(self, key, value) + self.id += str(value) class TestTraits(unittest.TestCase): |