Coverage for core\test_leoExternalFiles.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

16 statements  

1# -*- coding: utf-8 -*- 

2#@+leo-ver=5-thin 

3#@+node:ekr.20210911052754.1: * @file ../unittests/core/test_leoExternalFiles.py 

4#@@first 

5"""Tests of leoExternalFiles.py""" 

6 

7from leo.core import leoGlobals as g 

8import leo.core.leoApp as leoApp 

9from leo.core.leoTest2 import LeoUnitTest 

10import leo.core.leoExternalFiles as leoExternalFiles 

11 

12#@+others 

13#@+node:ekr.20210911052754.2: ** class TestExternalFiles (LeoUnitTest) 

14class TestExternalFiles(LeoUnitTest): 

15 #@+others 

16 #@+node:ekr.20210911052754.3: *3* TestExternalFiles.setUp 

17 def setUp(self): 

18 """setUp for TestFind class""" 

19 super().setUp() 

20 c = self.c 

21 g.app.idleTimeManager = leoApp.IdleTimeManager() 

22 g.app.idleTimeManager.start() 

23 g.app.externalFilesController = leoExternalFiles.ExternalFilesController(c=c) 

24 #@+node:ekr.20210911052754.4: *3* TestExternalFiles.test_on_idle 

25 def test_on_idle(self): 

26 """ 

27 A minimal test of the on_idle and all its helpers. 

28 

29 More detail tests would be difficult. 

30 """ 

31 efc = g.app.externalFilesController 

32 for i in range(100): 

33 efc.on_idle() 

34 #@-others 

35#@-others 

36#@-leo