Skip to content

Commit

Permalink
Updated options reset for opts utility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 3, 2017
1 parent c9009f4 commit d1d066d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@ class TestOptsUtil(ComparisonTestCase):
"""

def setUp(self):
self.store_copy = OptionTree(sorted(Store.options().items()),
groups=['style', 'plot', 'norm'])
self.backend = 'matplotlib'

super(TestOptsUtil, self).setUp()

def tearDown(self):
Store.custom_options(val = {})
Store.options(val=self.store_copy)
Store._custom_options = {k:{} for k in Store._custom_options.keys()}
super(TestOptsUtil, self).tearDown()

Expand Down

0 comments on commit d1d066d

Please sign in to comment.