SVN project detection not supported on Windows because opens too many pythonw.exe cmd windows

This commit is contained in:
Alan Hamlett 2017-05-21 17:29:06 -07:00
parent f23b9cd9ef
commit 413dad06ff

View file

@ -7,6 +7,7 @@ from wakatime.packages.requests.models import Response
import logging
import os
import platform
import shutil
import sys
import tempfile
@ -214,7 +215,8 @@ class ProjectTestCase(utils.TestCase):
execute(args)
self.assertEquals('svn', self.patched['wakatime.offlinequeue.Queue.push'].call_args[0][0]['project'])
expected = None if platform.system() == 'Windows' else 'svn'
self.assertEquals(expected, self.patched['wakatime.offlinequeue.Queue.push'].call_args[0][0].get('project'))
def test_svn_exception_handled(self):
response = Response()