Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad object instantiation in test swallows the real error #102

Open
fregas opened this issue Oct 12, 2021 · 0 comments
Open

Bad object instantiation in test swallows the real error #102

fregas opened this issue Oct 12, 2021 · 0 comments

Comments

@fregas
Copy link

fregas commented Oct 12, 2021

As discussed here:
https://discord.com/channels/608064116111966245/608064116984250379/897617334326403082

If you have a correctly formatted test with the right args,assert method signature, BUT, you are instantiating an object with the wrong parameters, you'll get an error like this:

** Running: test_stuff
I found a test method called :test_stuff. But it needs to have
the following method signature:
#+begin_src
def test_stuff args, assert

end
#+end_src
Please update the method signature to match the code above. If you
did not intend this to be a test method. Rename the method so it does
not start with "test_".

But the test_stuff method has the correct signature.

It seems to get the right message if you're just calling an instance method with the wrong # of params. Constructors is where the test framework gets confused.

hidden_error_dr.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant