Skip to content

Commit 36ae08d

Browse files
author
Lingling Peng
committed
add schedule cleanup for wiki id
1 parent 065fdfc commit 36ae08d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/integration/synapseclient/test_wikis.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +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)
3940

4041
# Create a Wiki sub-page
4142
subwiki = Wiki(
@@ -45,6 +46,7 @@ def test_wikiAttachment(syn: Synapse, project: Project, schedule_for_cleanup) ->
4546
parentWikiId=wiki.id,
4647
)
4748
subwiki = syn.store(subwiki)
49+
schedule_for_cleanup(subwiki.id)
4850

4951
# Retrieve the root Wiki from Synapse
5052
wiki2 = syn.getWiki(project)
@@ -76,9 +78,6 @@ def test_wikiAttachment(syn: Synapse, project: Project, schedule_for_cleanup) ->
7678
file_names = [fh["fileName"] for fh in file_handles]
7779
for fn in [filename, attachname]:
7880
assert os.path.basename(fn) in file_names
79-
80-
syn.delete(subwiki)
81-
syn.delete(wiki)
8281
pytest.raises(SynapseHTTPError, syn.getWiki, project)
8382

8483

0 commit comments

Comments
 (0)