Skip to content

#55 Fixed the empty input bug #57

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

Merged
merged 5 commits into from
Oct 23, 2024
Merged

#55 Fixed the empty input bug #57

merged 5 commits into from
Oct 23, 2024

Conversation

ahsimb
Copy link
Contributor

@ahsimb ahsimb commented Oct 22, 2024

closes #55
closes #56

All Submissions:

  • Is the title of the pull request correct?
  • Is the title of the corresponding issue correct?
  • Have you updated the changelog?
  • Have you checked to ensure there aren't other open pull requests for the same update/change?
  • Are you mentioning the issue which this pull request fixes ("Fixes...")

@ahsimb ahsimb added bug Unwanted / harmful behavior feature Product feature labels Oct 22, 2024
@ahsimb ahsimb self-assigned this Oct 22, 2024
ckunki
ckunki previously approved these changes Oct 22, 2024
_ = StandaloneMockContext(inp, meta_data)
# There is nothing to test here apart from successful creation of the
# context object. This internally has some checks that need to be passed.
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the test could assert that the constructor does not raise an exception?
https://stackoverflow.com/questions/4319825/python-unittest-opposite-of-assertraises

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why it is so important to make a distinction between a failure and an error. Either way, pytest will point out where the problem is. If you convert an exception to an assert failure you are more likely to hide the actual cause of the error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can enlighten me.

Co-authored-by: Christoph Kuhnke <christoph.kuhnke@exasol.com>
@ahsimb ahsimb merged commit 90865de into main Oct 23, 2024
2 checks passed
@ahsimb ahsimb deleted the bug/55-empty-input branch October 23, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior feature Product feature
Projects
None yet
2 participants