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

Tests for issue #48 #51

Merged
merged 2 commits into from
Dec 23, 2020
Merged

Tests for issue #48 #51

merged 2 commits into from
Dec 23, 2020

Conversation

iprak
Copy link
Contributor

@iprak iprak commented Dec 11, 2020

No description provided.

@iprak iprak mentioned this pull request Dec 11, 2020
@niccokunzmann
Copy link
Owner

Wow. Thanks!

@niccokunzmann
Copy link
Owner

I think, these tests are fine for testing. Nice functions, clear purpose, readable code.

You could reduce their size to about 20 lines instead of 66 by using global variables and functions and pytest.parametrize - remove duplicated code through refactoring. That would be a huge contribution to the maintainance of the module.

I can merge it now or would you like to work on it before I merge it?
What do you think?

@iprak
Copy link
Contributor Author

iprak commented Dec 19, 2020

Thanks for the suggestion. I have not worked much with Python. The size is around 20 lines now.

@niccokunzmann
Copy link
Owner

Beautiful, thanks!

@niccokunzmann niccokunzmann merged commit 7d46524 into niccokunzmann:master Dec 23, 2020
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.

None yet

2 participants