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

Improvement pytest #7

Merged
merged 26 commits into from
May 6, 2019
Merged

Improvement pytest #7

merged 26 commits into from
May 6, 2019

Conversation

felddy
Copy link
Member

@felddy felddy commented May 5, 2019

No description provided.

@felddy felddy marked this pull request as ready for review May 6, 2019 17:02
@felddy felddy requested a review from a team May 6, 2019 17:03
@felddy felddy self-assigned this May 6, 2019
@felddy
Copy link
Member Author

felddy commented May 6, 2019

So this PR adds unit tests, and code coverage checks. I think we should start maturing our test writing chops sooner than later. As the team grows the tests will give new members some confidence that they aren't committing system breaking changes. Also, chasing a 100% code-coverage can be a new pastime.

A bigger change is that I moved example into a src directory.
I was convinced of this for a few reasons, one of which was this blog post:
https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure

Let me know what you think.

Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

I think these changes are good, but please see my comment. Ideally we could find a solution that lets us run bandit with the assert check enabled on the library code and disabled on the unit test code.

I wholeheartedly agree that we need to get into the test writing business. 👍

.bandit.yml Show resolved Hide resolved
One for tests and one for everthing else.
@felddy felddy requested a review from jsf9k May 6, 2019 18:38
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

Great solution!

@felddy
Copy link
Member Author

felddy commented May 6, 2019

Check out this new thang:
image

@jsf9k
Copy link
Member

jsf9k commented May 6, 2019

Check out this new thang:
image

Yes, I saw that thang!

@felddy felddy merged commit 74d9406 into develop May 6, 2019
@felddy felddy deleted the improvement-pytest branch May 6, 2019 20:13
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