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

Add base testcase class #1181

Closed
wants to merge 5 commits into from
Closed

Add base testcase class #1181

wants to merge 5 commits into from

Conversation

PythonCoderAS
Copy link
Contributor

Test cases are a pain to debug in an interactive console, so this change will make it easier to deal with them in an interactive setting.

@bboe
Copy link
Member

bboe commented Dec 26, 2019

Can you explain the problem you're trying to solve with these changes?

@PythonCoderAS
Copy link
Contributor Author

@bboe debugging the test classes to find where specific error occurs. When an assertion fails it could be an error in the testcase, or an error in a helper function for a method, which was an error when trying to test #1144. This also makes it so you can run tests without the full suite, if you want to test just a specific component.

@bboe
Copy link
Member

bboe commented Dec 27, 2019

How are you running the tests? Pytest can run specific tests by filename, or even by test name.

Could you perhaps give me an example of what sort of output hides where the failure occurs? Perhaps there's a better way to address the issue you are experiencing.

@PythonCoderAS
Copy link
Contributor Author

@bboe let's say with #1144 I had a bunch of assert checks, where one assert was calling a function, and all i got was output saying "assertion failed, assert false" but it resolved to bound methods and not actual text

@bboe
Copy link
Member

bboe commented Dec 27, 2019

I think pytest would show you more information about the failure, but I could be wrong. Let's sit on this one for a bit.

@PythonCoderAS
Copy link
Contributor Author

I guess this isn't needed anymore.

@PythonCoderAS PythonCoderAS deleted the add-testcase-repr branch January 12, 2020 01:28
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

Successfully merging this pull request may close these issues.

2 participants