aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-02 18:14:53 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-02 18:14:53 -0800
commit03d699531c3197f06bbea46a2be19d0307449034 (patch)
treea1aa47fe1d2b63ca812db62ca363ab16e7e4b127 /python
parent8627c8cb97b0960315cd9b308a4b39bb2febf558 (diff)
downloadfatcat-03d699531c3197f06bbea46a2be19d0307449034.tar.gz
fatcat-03d699531c3197f06bbea46a2be19d0307449034.zip
add regression test for upper-case SHA-1 form submit
Diffstat (limited to 'python')
-rw-r--r--python/tests/web_editing.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/tests/web_editing.py b/python/tests/web_editing.py
index 1ee20405..773a59dd 100644
--- a/python/tests/web_editing.py
+++ b/python/tests/web_editing.py
@@ -122,6 +122,16 @@ def test_web_file_create(app_admin, api):
follow_redirects=True)
assert rv.status_code == 200
+ # upper-case SHA-1
+ rv = app_admin.post('/file/create',
+ data={
+ 'editgroup_id': eg.editgroup_id,
+ 'size': '12345',
+ 'sha1': '45BE56A396C4D03FAAA41E055170C23534DEC736',
+ },
+ follow_redirects=True)
+ assert rv.status_code == 200
+
def test_web_edit_get(app_admin):