Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf6d796

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 c586863 commit bf6d796

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plotly/tests/utils.py

Lines changed: 3 additions & 0 deletions
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)