14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
17
+ from json import loads
17
18
import logging
18
19
from typing import (
19
20
TYPE_CHECKING ,
22
23
Iterable ,
23
24
List ,
24
25
Tuple ,
25
- Union
26
+ Union ,
26
27
)
27
28
28
29
import pytest
29
30
from pytest import param
30
- from json import loads
31
31
32
- from cylc .flow import CYLC_LOG
33
- from cylc .flow import commands
32
+ from cylc .flow import (
33
+ CYLC_LOG ,
34
+ commands ,
35
+ )
34
36
from cylc .flow .cycling .integer import IntegerPoint
35
37
from cylc .flow .cycling .iso8601 import ISO8601Point
36
38
from cylc .flow .data_messages_pb2 import PbPrerequisite
37
39
from cylc .flow .data_store_mgr import TASK_PROXIES
40
+ from cylc .flow .flow_mgr import (
41
+ FLOW_ALL ,
42
+ FLOW_NONE ,
43
+ )
38
44
from cylc .flow .task_events_mgr import TaskEventsManager
39
45
from cylc .flow .task_outputs import (
46
+ TASK_OUTPUT_FAILED ,
40
47
TASK_OUTPUT_SUCCEEDED ,
41
- TASK_OUTPUT_FAILED
42
48
)
43
-
44
- from cylc .flow .flow_mgr import FLOW_ALL , FLOW_NONE
45
49
from cylc .flow .task_proxy import TaskProxy
46
50
from cylc .flow .task_state import (
47
- TASK_STATUS_WAITING ,
51
+ TASK_STATUS_EXPIRED ,
52
+ TASK_STATUS_FAILED ,
48
53
TASK_STATUS_PREPARING ,
49
- TASK_STATUS_SUBMITTED ,
50
54
TASK_STATUS_RUNNING ,
51
- TASK_STATUS_SUCCEEDED ,
52
- TASK_STATUS_FAILED ,
53
- TASK_STATUS_EXPIRED ,
54
55
TASK_STATUS_SUBMIT_FAILED ,
56
+ TASK_STATUS_SUBMITTED ,
57
+ TASK_STATUS_SUCCEEDED ,
58
+ TASK_STATUS_WAITING ,
55
59
)
56
60
61
+
57
62
if TYPE_CHECKING :
58
63
from cylc .flow .cycling import PointBase
59
64
from cylc .flow .scheduler import Scheduler
@@ -1805,7 +1810,9 @@ async def test_compute_runahead_with_no_tasks(flow, scheduler, run):
1805
1810
assert schd .pool .get_tasks () == []
1806
1811
1807
1812
1808
- async def test_compute_runahead_with_no_sequences (flow , scheduler , start , run , complete ):
1813
+ async def test_compute_runahead_with_no_sequences (
1814
+ flow , scheduler , start , run , complete
1815
+ ):
1809
1816
"""It should handle no sequences within the start-stop cycle range.
1810
1817
1811
1818
See https://github.com/cylc/cylc-flow/issues/6154
@@ -1815,9 +1822,9 @@ async def test_compute_runahead_with_no_sequences(flow, scheduler, start, run, c
1815
1822
'cycling mode' : 'integer' ,
1816
1823
'initial cycle point' : '1' ,
1817
1824
'graph' : {
1818
- 'P1' : 'foo[-P1] => foo'
1819
- }
1820
- }
1825
+ 'P1' : 'foo[-P1] => foo' ,
1826
+ },
1827
+ },
1821
1828
}
1822
1829
id_ = flow (cfg )
1823
1830
schd = scheduler (id_ , paused_start = False )
0 commit comments