-
Notifications
You must be signed in to change notification settings - Fork 4
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.py - write some tests #5
Comments
pasted from slack discussion on this issue:
|
Tests sound good to me! It might help think through code structure too,
into testable units 👍
…On Mon, Feb 19, 2018 at 8:03 AM Stephanie Smith-Unna < ***@***.***> wrote:
pasted from slack discussion on this issue:
this wasn't simple to debug. s3 was throwing an error, possibly due to not
getting content from your filehandle. I think it wasn't getting content
from the filehandle because you had read the whole thing and printed it to
console with handle_uploaded_file. if you comment out calling that, it
works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/Treblesteph/oh-data-demo-template/issues/5#issuecomment-366735706>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFCx1ZvMJsaSxblpOIhIxVeWUNb0i2qks5tWZtLgaJpZM4SKxkB>
.
|
I want to add tests for all functions in
tasks.py
, and maybe for those inviews.py
too... but then I remembered that when I was trying to get the demo up and running, I ran into a problem with the file handle. I didn't completely understand the whole issue, but it seemed to be quite hard to debug, so might be worth writing a test to help if a similar thing were to happen to someone else.@madprime, what do you think?
The text was updated successfully, but these errors were encountered: