
commit 79a19166b06f3e8b08973cad2000e7fb5126201a Author: meskio <meskio@torproject.org> Date: Tue Nov 23 19:08:38 2021 +0100 Fix smtp tests Now there are no bridges to provide, tests need to check for something else. --- bridgedb/test/test_smtp.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bridgedb/test/test_smtp.py b/bridgedb/test/test_smtp.py index ab70e9b..6488af4 100644 --- a/bridgedb/test/test_smtp.py +++ b/bridgedb/test/test_smtp.py @@ -151,8 +151,7 @@ class SMTPTests(unittest.TestCase): % random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS)) # then check that our local SMTP server received a response - # and that response contained some bridges - self.server.getAndCheckMessageContains(b"Here is your bridge") + self.server.getAndCheckMessageContains(b"[This is an automated email.]") def test_getBridges_rateLimitExceeded(self): if os.environ.get("CI"): @@ -167,8 +166,7 @@ class SMTPTests(unittest.TestCase): sendMail(FROM_ADDRESS) # then check that our local SMTP server received a response - # and that response contained some bridges - self.server.getAndCheckMessageContains(b"Here is your bridge") + self.server.getAndCheckMessageContains(b"[This is an automated email.]") # send another request from the same email address sendMail(FROM_ADDRESS) @@ -203,4 +201,4 @@ class SMTPTests(unittest.TestCase): % random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS)) for i in range(NUM_MAILS): - self.server.getAndCheckMessageContains(b"Here is your bridge") + self.server.getAndCheckMessageContains(b"[This is an automated email.]")