Fix outbox test

merge-requests/30/head
Bob Mottram 2022-05-01 18:28:02 +01:00
parent ac8b86059f
commit 6d0b0b076d
1 changed files with 6 additions and 4 deletions

View File

@ -3419,10 +3419,12 @@ def test_client_to_server(base_dir: str):
if os.path.isfile(os.path.join(inbox_path, name))]) if os.path.isfile(os.path.join(inbox_path, name))])
assert test == bob_posts_before - 1 assert test == bob_posts_before - 1
print(">>> post was deleted from Bob's inbox") print(">>> post was deleted from Bob's inbox")
# test = len([name for name in os.listdir(outbox_path) test = len([name for name in os.listdir(outbox_path)
# if os.path.isfile(os.path.join(outbox_path, name))]) if os.path.isfile(os.path.join(outbox_path, name))])
# assert test == alice_posts_before - 1 # this should be unchanged because a delete post was added
# print(">>> post deleted from Alice's outbox") # at the outbox and one was removed
assert test == alice_posts_before
print(">>> post deleted from Alice's outbox")
assert valid_inbox(bob_dir, 'bob', bob_domain) assert valid_inbox(bob_dir, 'bob', bob_domain)
assert valid_inbox_filenames(bob_dir, 'bob', bob_domain, assert valid_inbox_filenames(bob_dir, 'bob', bob_domain,
alice_domain, alice_port) alice_domain, alice_port)