Skip to content

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

Open
renepickhardt wants to merge 1 commit into
mainfrom
unittests
Open

added a few test cases to showcase how tests #8 may potentially be fixed#19
renepickhardt wants to merge 1 commit into
mainfrom
unittests

Conversation

@renepickhardt

Copy link
Copy Markdown
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

carlosds731 commented May 15, 2022

Copy link
Copy Markdown

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

@renepickhardt

Copy link
Copy Markdown
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
Copy Markdown

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