TypeError: make() takes exactly 1 argument
I'm working on an implementation of testresources for unit testing. We have a Selenium process that we'd like to share among the test cases as it is extremely expensive to set up and tear down for each case, and testresources seems to be the way to go. I've followed the example here (http://
setUp() takes exactly 2 arguments (1 given)
File "C:\Python26\
self.setUp()
Decomposing the code a little bit further, I get a deeper stack trace that tells me that it's testresources that isn't happy:
Traceback (most recent call last):
File "C:\Users\
self.
File "C:\Users\
setUpResou
File "C:\Users\
setattr(test, resource[0], resource[
File "C:\Users\
self.
File "C:\Users\
resource = self.make(
TypeError: make() takes exactly 1 argument (2 given)
I reconstructed the example from Mere Code out of exasperation (couldn't figure out why mine didn't work when it should have been exactly consistent with the setup of the author's complex-
Anyhow, I can post my code if that would help, especially if this isn't a known issue that has a fun and exciting fix.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Max Magee
- Solved:
- Last query:
- Last reply: