8000 fixes this issue · henrypan/python-api@e564a15 · GitHub
[go: up one dir, main page]

Skip to content

Commit e564a15

Browse files
committed
fixes this issue
``` ====================================================================== ERROR: Failure: TypeError (__init__() takes exactly 1 argument (2 given)) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 523, in makeTest return self._makeTest(obj, parent) File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 570, in _makeTest return self.loadTestsFromTestCase(obj) File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 494, in loadTestsFromTestCase return super(TestLoader, self).loadTestsFromTestCase(testCaseClass) File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2. 7/lib/python2.7/unittest/loader.py", line 56, in loadTestsFromTestCase loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames)) TypeError: __init__() takes exactly 1 argument (2 given) ```
1 parent 656d4ce commit e564a15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/tests/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class PlotlyTestCase(TestCase):
1111

1212
# parent test case to assist with clean up of local credentials/config
1313

14-
def __init__(self, **kwargs):
14+
def __init__(self, *args, **kwargs):
1515
self._file_credentials = None
1616
self._file_config = None
1717
self._session = None
18-
super(PlotlyTestCase, self).__init__(**kwargs)
18+
super(PlotlyTestCase, self).__init__(*args, **kwargs)
1919

2020
def setUp(self):
2121
self.stash_file_credentials_and_config()

0 commit comments

Comments
 (0)
0