Skip to content

Commit

Permalink
Test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kompoth committed Apr 2, 2024
1 parent 0ad4ba3 commit be35661
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file added tests/media/nasa-hubble.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/media/rufino-train.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

from muckraker.main import app

# Is it a good idea to set headers manually?
# TODO: get rid off explicit header setting. I currently have to do that
# as POST /issue/ recieves a complicated multipart data. Maybe it would
# be better to move image uploading to another endpoint
FORM_HEADERS = {'Content-Type': 'application/x-www-form-urlencoded'}
# TODO: add image processing tests. For now TestClient doesn't send them,
# might be due to a mixed multipart data.

client = TestClient(app)

Expand Down

0 comments on commit be35661

Please sign in to comment.