Skip to content

Commit ad1f7cf

Browse files
ericvergnaudJCZuurmond
authored andcommitted
fix incorrect step sequence
1 parent 73b277a commit ad1f7cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/unit/sequencing/test_sequencing.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
from databricks.labs.ucx.mixins.cached_workspace_path import WorkspaceCache
1212
from databricks.labs.ucx.sequencing.sequencing import MigrationSequencer
1313
from databricks.labs.ucx.source_code.base import CurrentSessionState
14-
from databricks.labs.ucx.source_code.graph import DependencyGraph
14+
from databricks.labs.ucx.source_code.graph import DependencyGraph, Dependency
1515
from databricks.labs.ucx.source_code.jobs import WorkflowTask
16+
from databricks.labs.ucx.source_code.linters.files import FileLoader
1617

1718

1819
def admin_locator(ws, user_name: str):
@@ -67,13 +68,14 @@ def test_sequencer_builds_steps_from_dependency_graph(ws, simple_dependency_reso
6768
assert step0
6869
step1 = next((step for step in steps if step.object_name == notebook_path.as_posix()), None)
6970
assert step1
70-
assert step1.step_number > step0.step_number
71+
assert step1.step_number < step0.step_number
7172
step2 = next(
7273
(step for step in steps if step.object_name == "parent_that_magic_runs_child_that_uses_value_from_parent.py"),
7374
None,
7475
)
7576
assert step2
76-
assert step2.step_number > step1.step_number
77+
assert step2.step_number < step1.step_number
7778
step3 = next((step for step in steps if step.object_name == "_child_that_uses_value_from_parent.py"), None)
7879
assert step3
79-
assert step3.step_number > step2.step_number
80+
assert step3.step_number < step2.step_number
81+

0 commit comments

Comments
 (0)