Skip to content

Commit e3ee249

Browse files
author
Lingling Peng
committed
fix test; edit conftest
1 parent 82ad8b0 commit e3ee249

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

tests/integration/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ async def _cleanup(syn: Synapse, items):
181181
os.remove(item)
182182
except Exception as ex:
183183
print(ex)
184+
else:
185+
sys.stderr.write(
186+
"Don't know how to clean: %s (type: %s)"
187+
% (str(item), type(item).__name__)
188+
)
184189
elif isinstance(
185190
item,
186191
(

tests/integration/synapseclient/test_wikis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_wikiAttachment(syn: Synapse, project: Project, schedule_for_cleanup) ->
3636
attachments=[attachname],
3737
)
3838
wiki = syn.store(wiki)
39-
schedule_for_cleanup(wiki.id)
39+
schedule_for_cleanup(wiki)
4040

4141
# Create a Wiki sub-page
4242
subwiki = Wiki(
@@ -46,7 +46,7 @@ def test_wikiAttachment(syn: Synapse, project: Project, schedule_for_cleanup) ->
4646
parentWikiId=wiki.id,
4747
)
4848
subwiki = syn.store(subwiki)
49-
schedule_for_cleanup(subwiki.id)
49+
schedule_for_cleanup(subwiki)
5050

5151
# Retrieve the root Wiki from Synapse
5252
wiki2 = syn.getWiki(project)

0 commit comments

Comments
 (0)