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

Why does test_upload assert type=None? #4

Open
cen1 opened this issue Feb 27, 2017 · 0 comments
Open

Why does test_upload assert type=None? #4

cen1 opened this issue Feb 27, 2017 · 0 comments

Comments

@cen1
Copy link

cen1 commented Feb 27, 2017

Since the last issue was reopened I decided to retest my backend and besides the cover thing it passes the tests except this assert: In test_upload, the self.assertEquals(file_data['type'], None) failed for me. My returned value was image/png which should be correct since a png was uploaded. I have a three step mime type finder. First I check via form metadata, then via Apache Tika and finally from file extension. I didn't test the official backend but I checked the network on the Try page and it does return the image type in JSON.

I think it shoud be self.assertEquals(file_data['type'], "image/png")

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

No branches or pull requests

1 participant