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

added a few test cases to showcase how tests #8 may potentially be fixed #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renepickhardt
Copy link
Owner

This is an example showing how unit tests could be added which would be a first step towards fixing #8 .

However I am not sure if this is really the right way. There is a lot of exception handling and boiler plate code now already in a simple setter / getter function.

In any case one can run the tests via:

cd test
python3 -m unittest testUncertaintyChannel.py

@carlosds731
Copy link

carlosds731 commented May 15, 2022

Wouldn't be easier to use pytest? They have less boilerplate. I can give a hand if you like.

@renepickhardt
Copy link
Owner Author

Haven't checked pytest so if you want to provide an alternative example I will be happy to check it out and greatful!

But my question is also about the production code that now has so much more checks for a single value assignment.

I just wonder if I should focus on tests or applications / showcases of the lib. I guess we gonna need both.

@carlosds731
Copy link

Both, for sure

Haven't checked pytest so if you want to provide an alternative example I will be happy to check it out and greatful!

But my question is also about the production code that now has so much more checks for a single value assignment.

I just wonder if I should focus on tests or applications / showcases of the lib. I guess we gonna need both.

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