diff options
author | Roald de Vries <rdevries@thoughtworks.com> | 2016-11-23 16:38:36 +0100 |
---|---|---|
committer | Roald de Vries <rdevries@thoughtworks.com> | 2016-11-23 16:38:36 +0100 |
commit | 240d53b512caa676f3ff6fa02c042f8f7a3aefbe (patch) | |
tree | 0fe2a0062c75cd4b1699f7a14adb4a13105e1d19 /service/test | |
parent | 5f6719a6a36fa39baed91bf4850d909ef23ec71f (diff) |
skip the test that is failing in snap only in snap
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/unit/config/test_sessions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/test/unit/config/test_sessions.py b/service/test/unit/config/test_sessions.py index b7a05618..007371ea 100644 --- a/service/test/unit/config/test_sessions.py +++ b/service/test/unit/config/test_sessions.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. +import os from mock import patch from mock import MagicMock from twisted.internet import defer @@ -56,7 +57,9 @@ class SessionTest(AbstractLeapTest): @defer.inlineCallbacks def test_that_sync_defers_to_soledad(self): - raise unittest.SkipTest('fails on snap, but not locally') + # TODO: fix this in SnapCI + if os.environ.get('SNAP_CI') == 'true': + raise unittest.SkipTest('Skip this test in SnapCI, because it fails for misterious reasons') with patch('pixelated.config.sessions.reactor.callFromThread', new=_execute_func) as _: with patch('pixelated.config.sessions.LeapSession._create_incoming_mail_fetcher') as mail_fetcher_mock: session = self._create_session() |