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

Setup Python unit-testing framework #27

Closed
benpankow opened this issue Sep 27, 2019 · 2 comments
Closed

Setup Python unit-testing framework #27

benpankow opened this issue Sep 27, 2019 · 2 comments

Comments

@benpankow
Copy link
Contributor

We need to figure out how we want to structure our Python unit tests, and which framework we should use. unittest is part of the Python standard library, but is more barebones. pytest and nose are some popular alternatives which are a bit more full-featured.

@m-pitera
Copy link
Contributor

m-pitera commented Oct 2, 2019

I've only worked with pytest so I may be biased, but I think that we should use pytest with it being more fully featured and preferred over nose due to more extensive documentation. It also looks nicer imo, with the way it outputs false assertions 😎

@m-pitera
Copy link
Contributor

I wrote some tests for #30 in pytest. At the moment the file is in the same folder as the backend, but once we decide on this we can move the test files into their own folder if we decide that's necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants