Skip to content

Commit

Permalink
moved to integration test: f/deprecations/04-simple-graph
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jan 15, 2024
1 parent c07392d commit 7150a09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 42 deletions.
42 changes: 0 additions & 42 deletions tests/functional/deprecations/04-simple-graph.t

This file was deleted.

15 changes: 15 additions & 0 deletions tests/integration/scripts/test_validate_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,18 @@ async def test_validate_against_source_gets_old_tvars(
flow_file.read_text().replace('P1Y = foo', 'P1Y = {{FOO}}'))
with pytest.raises(Jinja2Error):
validate(src_dir)


def test_validate_simple_graph(flow, validate, caplog):
id_ = flow({
'scheduler': {'allow implicit tasks': True},
'scheduling': {'dependencies': {'graph': 'foo'}}
})
validate(id_)
expect = (
'deprecated graph items were automatically upgraded '
'in "workflow definition":'
'\n * (8.0.0) [scheduling][dependencies][X]graph'
' -> [scheduling][graph]X - for X in:\n graph'
)
assert expect in caplog.messages

0 comments on commit 7150a09

Please sign in to comment.