Hammy Goonan
  • Home
  • About this blog
  • About Me

unittest

A collection of 1 post
Flask

Testing File uploads in Flask

I was recently writing Flask integration tests for a form that had a file upload parameter. As it turns out, is isn't as straight forward as I had thought it would be. A basic file upload test might look like this: def test_logo(self): data = dict(logo=
Mar 4, 2016 1 min read
Page 1 of 1
Hammy Goonan © 2026
Powered by Ghost