From a61bd671f9032dfba7dc7eb2fdbf4258014ec8c6 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Sat, 5 Dec 2015 13:54:45 -0800 Subject: fixed set by user --- ricky/param/enum.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ricky/param/enum.py') diff --git a/ricky/param/enum.py b/ricky/param/enum.py index 757bd29..f0adc9e 100644 --- a/ricky/param/enum.py +++ b/ricky/param/enum.py @@ -31,3 +31,8 @@ class Enum(Param): def randomize(self): self.value_set(random.choice(self._options)) + + def as_dict(self): + my_dict = super(Enum, self).as_dict() + my_dict['options'] = self._options + return my_dict -- cgit v1.2.3-70-g09d2