Skip to content

Commit

Permalink
[#8570] test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie01 committed Nov 25, 2024
1 parent b36242b commit 7741847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def test_create_topic_attachment(self):
if field.id is None:
continue
if 'attachment' in field.id:
form[field.name] = ('myfile.txt', b'foo bar baz') # webtest.Upload dooesn't work here
form[field.name] = [('myfile.txt', b'foo bar baz')] # webtest.Upload dooesn't work here
r = form.submit().follow()
assert 'myfile.txt' in r, r

Expand Down
2 changes: 1 addition & 1 deletion ForgeImporters/forgeimporters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def __init__(cls, name, bases, attrs):
if not (hasattr(cls, 'target_app_ep_names')
or hasattr(cls, 'target_app')):
raise AttributeError(f"{name} must define either `target_app` or `target_app_ep_names`")
return type.__init__(cls, name, bases, attrs)
type.__init__(cls, name, bases, attrs)

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

0 comments on commit 7741847

Please sign in to comment.