aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-04-12 15:42:16 -0400
committerMicah Lee <micah@micahflee.com>2021-04-12 15:42:16 -0400
commit5cf8ef180eed6fa2cf49502eb3ccd6d308269ae4 (patch)
tree32aecc317506a58b69c9ae1f2e2bffc41600a7f5 /cli
parentcf1debbf3ce9f04cfd34239b876bef77d8741920 (diff)
downloadonionshare-5cf8ef180eed6fa2cf49502eb3ccd6d308269ae4.tar.gz
onionshare-5cf8ef180eed6fa2cf49502eb3ccd6d308269ae4.zip
Fix log tests
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/test_cli_common.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/tests/test_cli_common.py b/cli/tests/test_cli_common.py
index 96838c95..ef4732be 100644
--- a/cli/tests/test_cli_common.py
+++ b/cli/tests/test_cli_common.py
@@ -241,5 +241,11 @@ class TestLog:
output = buf.getvalue()
line_one, line_two, _ = output.split("\n")
- assert line_one == "[Jun 06 2013 11:05:00] TestModule.dummy_func"
- assert line_two == "[Jun 06 2013 11:05:00] TestModule.dummy_func: TEST_MSG"
+ assert (
+ "[Jun 06 2013 11:05:00]" in line_one and "TestModule.dummy_func" in line_one
+ )
+ assert (
+ "[Jun 06 2013 11:05:00]" in line_two
+ and "TestModule.dummy_func" in line_two
+ and "TEST_MSG" in line_two
+ )