There is a GET for this endpoint?
I checked I only need POST for both the urls
POST
1 new commit added
Indentation is off
Did you check https://pagure.io/fork/farhaan/pagure/blob/fork-edit/f/pagure/templates/file.html#_94 ?
Checking the file type ?
2 new commits added
4 new commits added
This needs unit-tests :)
rebased
Why POST requests?
The URL supports POST and with GET I get a 404 which is not the supposed output.
GET
404
Looks good, the only missing part is: checking if/when the button is showing up :)
@pingou in tests ?
@farhaan yes that would be easier to check :)
Why are you adding binary data since you're not using it anywhere?
Give some space in between your checks
Sorry you are with test.jpg, but not this one indeed :)
test.jpg
Doesn't show?
Even more: doesn't show on binary file
2 lines at the end
Could we explain why 404?
Could we explain why 400?
This checks if the user is not logged in
7 new commits added
Ok so remaining comments:
Fork & Edit
Looks good to me, thanks! :)
Pull-Request has been merged by pingou
Finally thank you :)