Skip to content

Commit c397262

Browse files
committed
Simplify integration reftest
1 parent aff3dd1 commit c397262

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/integration/test_triggering.py renamed to tests/integration/reftests/test_triggering.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,23 @@
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
async def test_fail(flow, scheduler, run, reflog, complete, validate):
17+
async def test_fail(flow, scheduler, reftest):
1818
"""Test triggering on :fail"""
1919
id_ = flow({
20-
'scheduler': {
21-
'allow implicit tasks': 'true'
22-
},
2320
'scheduling': {
2421
'graph': {
2522
'R1': 'foo:failed => bar'
2623
}
2724
},
2825
'runtime': {
29-
'root': {
30-
'simulation': {'default run length': 'PT0S'}
31-
},
3226
'foo': {
3327
'simulation': {'fail cycle points': 'all'}
3428
}
3529
}
3630
})
3731
schd = scheduler(id_, paused_start=False)
3832

39-
async with run(schd):
40-
triggers = reflog(schd)
41-
await complete(schd)
42-
43-
assert triggers == {
33+
assert await reftest(schd) == {
4434
('1/foo', None),
4535
('1/bar', ('1/foo',)),
4636
}

0 commit comments

Comments
 (0)