Skip to content

Commit

Permalink
Load default config in PlotlyTestCase.
Browse files Browse the repository at this point in the history
Clean-slates each test. It doesn’t mean that the files aren’t dirty
between tests, but because `session` takes precedence, this helps a lot.
  • Loading branch information
theengineear committed Jan 31, 2017
1 parent db9df4d commit f15ae46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plotly/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def setUpClass(cls):
def setUp(self):
self.stash_session()
self.stash_files()
defaults = dict(files.FILE_CONTENT[files.CREDENTIALS_FILE],
**files.FILE_CONTENT[files.CONFIG_FILE])
session.sign_in(**defaults)

def tearDown(self):
self.restore_files()
Expand Down

0 comments on commit f15ae46

Please sign in to comment.