Skip to content

Commit 5f03bab

Browse files
committed
refactored init params to use defined params variable
1 parent 3584086 commit 5f03bab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/core/tests/test_serializers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ class TestStrategy(object):
1616
"manipulates_source": False,
1717
"manipulates_state": False,
1818
}
19+
params = {'rate': 0.5}
1920

2021
def __init__(self):
2122
pass
2223

2324
def init_params(self):
24-
return {
25-
'rate': 0.5
26-
}
25+
return self.params
2726

2827

2928
class TestSerializers(TestCase):

0 commit comments

Comments
 (0)