Skip to content

Commit 7741847

Browse files
committed
[#8570] test updates
1 parent b36242b commit 7741847

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ForgeDiscussion/forgediscussion/tests/functional/test_forum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ def test_create_topic_attachment(self):
10011001
if field.id is None:
10021002
continue
10031003
if 'attachment' in field.id:
1004-
form[field.name] = ('myfile.txt', b'foo bar baz') # webtest.Upload dooesn't work here
1004+
form[field.name] = [('myfile.txt', b'foo bar baz')] # webtest.Upload dooesn't work here
10051005
r = form.submit().follow()
10061006
assert 'myfile.txt' in r, r
10071007

ForgeImporters/forgeimporters/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def __init__(cls, name, bases, attrs):
376376
if not (hasattr(cls, 'target_app_ep_names')
377377
or hasattr(cls, 'target_app')):
378378
raise AttributeError(f"{name} must define either `target_app` or `target_app_ep_names`")
379-
return type.__init__(cls, name, bases, attrs)
379+
type.__init__(cls, name, bases, attrs)
380380

381381
def __call__(cls, *args, **kw):
382382
""" Right before the first instance of cls is created, get

0 commit comments

Comments
 (0)