1) Fix some pep8 errors and spell mistakes (found while reading code)
2) Fix issue #1730 All issue attachments are treated as images
a) while creating issues and editing issues
b) while commenting in issues
c) in pagure api
3) Earlier when an attachment was included, <!!image> was added to issue.content . Now instead , filename (like abc.out ) is added.
There is a test which is supposed to be failed (because of the changes) here -> https://pagure.io/pagure/blob/master/f/tests/test_pagure_flask_ui_issues.py#_188
I am not able to figure out where the issue.content in tests is being send. :P
FAIL: test_new_issue_w_file (main.PagureFlaskIssuestests)
Test the new_issue endpoint with a file.
Fixes :-
1) Fix some pep8 errors and spell mistakes (found while reading code)
2) Fix issue #1730 All issue attachments are treated as images
a) while creating issues and editing issues
b) while commenting in issues
c) in pagure api
3) Earlier when an attachment was included, <!!image> was added to issue.content . Now instead , filename (like abc.out ) is added.
There is a test which is supposed to be failed (because of the changes) here -> https://pagure.io/pagure/blob/master/f/tests/test_pagure_flask_ui_issues.py#_188
I am not able to figure out where the issue.content in tests is being send. :P
FAIL: test_new_issue_w_file (main.PagureFlaskIssuestests)
Test the new_issue endpoint with a file.