diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-30 12:50:57 +0000 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:30 +0200 |
commit | 64b2e37cfc15eff18da473fa20f076c22a5f904b (patch) | |
tree | 7ae50cba11ae5d45d678ed37168e76e7ee9ee5d4 /service/test/unit/maintenance | |
parent | e9416f5ebdced75f9463073a25d2b999969124a4 (diff) |
Removed relative import of test resources.
- test_contacts.py and test_commands.py
Diffstat (limited to 'service/test/unit/maintenance')
-rw-r--r-- | service/test/unit/maintenance/test_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/test/unit/maintenance/test_commands.py b/service/test/unit/maintenance/test_commands.py index 4eb2e990..6e097cea 100644 --- a/service/test/unit/maintenance/test_commands.py +++ b/service/test/unit/maintenance/test_commands.py @@ -25,6 +25,7 @@ from leap.soledad.common.document import SoledadDocument from mock import MagicMock from os.path import join, dirname from twisted.internet import defer, reactor +import pkg_resources class TestCommands(unittest.TestCase): @@ -80,7 +81,7 @@ class TestCommands(unittest.TestCase): def test_load_mails_adds_mails(self): # given - mail_root = join(dirname(__file__), '..', 'fixtures', 'mailset') + mail_root = pkg_resources.resource_filename('test.unit.fixtures', 'mailset') firstMailDeferred = defer.Deferred() secondMailDeferred = defer.Deferred() self.mailbox.addMessage.side_effect = [firstMailDeferred, secondMailDeferred] |