summaryrefslogtreecommitdiff
path: root/service/test/adapter/pixelated_mail_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/adapter/pixelated_mail_test.py')
-rw-r--r--service/test/adapter/pixelated_mail_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/adapter/pixelated_mail_test.py b/service/test/adapter/pixelated_mail_test.py
index c8c23b8a..4e579cb7 100644
--- a/service/test/adapter/pixelated_mail_test.py
+++ b/service/test/adapter/pixelated_mail_test.py
@@ -73,12 +73,12 @@ class TestPixelatedMail(unittest.TestCase):
def test_update_tags_notifies_tag_service(self):
db_path = '/tmp/test_update_tags_notifies_tag_service'
- tag_service = TagService(TagIndex(db_path))
+ TagService.instance = TagService(TagIndex(db_path))
mail = PixelatedMail.from_soledad(*test_helper.leap_mail(), soledad_querier=self.querier)
mail.update_tags({'new_tag'})
- self.assertIn(Tag('new_tag'), tag_service.all_tags())
+ self.assertIn(Tag('new_tag'), mail.tag_service.all_tags())
os.remove(db_path + '.db')
@@ -131,4 +131,4 @@ class InputMailTest(unittest.TestCase):
smtp_format = InputMail.from_dict(self.mail_dict()).to_smtp_format()
- self.assertRegexpMatches(smtp_format, "\nFrom: pixelated@org") \ No newline at end of file
+ self.assertRegexpMatches(smtp_format, "\nFrom: pixelated@org")