mirror of https://gitlab.com/bashrc2/epicyon
Fix outbox test
parent
ac8b86059f
commit
6d0b0b076d
10
tests.py
10
tests.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue