@@ -120,7 +120,7 @@ def get_status_side_effect(*args):
120120 builder .build_notebook_dependency_graph (Path ("root1.run.py.txt" ))
121121 assert list (builder .problems ) == [
122122 DependencyProblem (
123- 'dependency-check ' , 'Notebook not found: leaf2.py.txt' , Path ("root1.run.py.txt" ), 19 , 0 , 19 , 21
123+ 'notebook-not-found ' , 'Notebook not found: leaf2.py.txt' , Path ("root1.run.py.txt" ), 19 , 0 , 19 , 21
124124 )
125125 ]
126126
@@ -149,7 +149,7 @@ def is_file_side_effect(*args):
149149 )
150150 builder .build_notebook_dependency_graph (Path (paths [0 ]))
151151 assert list (builder .problems ) == [
152- DependencyProblem ('dependency-check ' , 'Notebook not found: leaf3.py.txt' , Path (paths [0 ]), 1 , 0 , 1 , 38 )
152+ DependencyProblem ('notebook-not-found ' , 'Notebook not found: leaf3.py.txt' , Path (paths [0 ]), 1 , 0 , 1 , 38 )
153153 ]
154154
155155
@@ -178,7 +178,7 @@ def is_file_side_effect(*args):
178178 builder .build_notebook_dependency_graph (Path (paths [0 ]))
179179 assert list (builder .problems ) == [
180180 DependencyProblem (
181- 'dependency-check ' , "Can't check dependency not provided as a constant" , Path (paths [0 ]), 2 , 0 , 2 , 35
181+ 'dependency-not-constant ' , "Can't check dependency not provided as a constant" , Path (paths [0 ]), 2 , 0 , 2 , 35
182182 )
183183 ]
184184
@@ -201,7 +201,9 @@ def test_dependency_graph_builder_raises_problem_with_invalid_run_cell():
201201 )
202202 builder .build_notebook_dependency_graph (Path (paths [0 ]))
203203 assert list (builder .problems ) == [
204- DependencyProblem ('dependency-check' , 'Missing notebook path in %run command' , Path ("leaf6.py.txt" ), 5 , 0 , 5 , 4 )
204+ DependencyProblem (
205+ 'invalid-%run-cell' , 'Missing notebook path in %run command' , Path ("leaf6.py.txt" ), 5 , 0 , 5 , 4
206+ )
205207 ]
206208
207209
@@ -234,7 +236,7 @@ def test_dependency_graph_builder_raises_problem_with_unresolved_import():
234236 builder .build_local_file_dependency_graph (Path (paths [0 ]))
235237 assert list (builder .problems ) == [
236238 DependencyProblem (
237- 'dependency-check ' , 'Could not locate import: some_library' , Path ("root7.py.txt" ), 1 , 0 , 1 , 19
239+ 'import-not-found ' , 'Could not locate import: some_library' , Path ("root7.py.txt" ), 1 , 0 , 1 , 19
238240 )
239241 ]
240242
@@ -253,7 +255,13 @@ def test_dependency_graph_builder_raises_problem_with_non_constant_notebook_argu
253255 builder .build_local_file_dependency_graph (Path (paths [0 ]))
254256 assert list (builder .problems ) == [
255257 DependencyProblem (
256- 'dependency-check' , "Can't check dependency not provided as a constant" , Path (paths [0 ]), 14 , 13 , 14 , 50
258+ 'dependency-not-constant' ,
259+ "Can't check dependency not provided as a constant" ,
260+ Path (paths [0 ]),
261+ 14 ,
262+ 13 ,
263+ 14 ,
264+ 50 ,
257265 )
258266 ]
259267
@@ -334,7 +342,7 @@ def test_dependency_graph_builder_raises_problem_with_unfound_root_file(empty_in
334342 DependencyResolver .initialize (whi , site_packages , file_loader , LocalNotebookLoader (provider ), provider )
335343 )
336344 builder .build_local_file_dependency_graph (Path ("root1.run.py.txt" ))
337- assert list (builder .problems ) == [DependencyProblem ('dependency-check ' , 'File not found: root1.run.py.txt' )]
345+ assert list (builder .problems ) == [DependencyProblem ('file-not-found ' , 'File not found: root1.run.py.txt' )]
338346 file_loader .load_dependency .assert_not_called ()
339347
340348
@@ -353,5 +361,5 @@ def test_dependency_graph_builder_raises_problem_with_unfound_root_notebook(empt
353361 DependencyResolver .initialize (whi , site_packages , file_loader , notebook_loader , provider )
354362 )
355363 builder .build_notebook_dependency_graph (Path ("root2.run.py.txt" ))
356- assert list (builder .problems ) == [DependencyProblem ('dependency-check ' , 'Notebook not found: root2.run.py.txt' )]
364+ assert list (builder .problems ) == [DependencyProblem ('notebook-not-found ' , 'Notebook not found: root2.run.py.txt' )]
357365 file_loader .load_dependency .assert_not_called ()
0 commit comments