Skip to content

Commit f15ae46

Browse files
committed
Load default config in PlotlyTestCase.
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.
1 parent db9df4d commit f15ae46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: plotly/tests/utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def setUpClass(cls):
2727
def setUp(self):
2828
self.stash_session()
2929
self.stash_files()
30+
defaults = dict(files.FILE_CONTENT[files.CREDENTIALS_FILE],
31+
**files.FILE_CONTENT[files.CONFIG_FILE])
32+
session.sign_in(**defaults)
3033

3134
def tearDown(self):
3235
self.restore_files()

0 commit comments

Comments
 (0)