Skip to content

Bad object instantiation in test swallows the real error #102

Open
@fregas

Description

@fregas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions