Skip to content

Commit 70278ef

Browse files
jherlandmknorps
andauthored
Add test for a file being both a CodeSource and a DepsSource
Co-authored-by: Maria Knorps <[email protected]>
1 parent 7c8657e commit 70278ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_traverse_project.py

+8
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ class TraverseProjectVector:
259259
expect_imports_src={"subdir1/notebook.ipynb", "subdir1/script.py"},
260260
expect_deps_src={"subdir1/setup.cfg"},
261261
),
262+
TraverseProjectVector(
263+
"given_code_and_deps_as_same_dir_with_file_both_dep_and_import__yields_files_within",
264+
"mixed_project",
265+
code={"subdir2"},
266+
deps={"subdir2"},
267+
expect_imports_src={"subdir2/notebook.ipynb", "subdir2/script.py", "subdir2/setup.py"},
268+
expect_deps_src={"subdir2/setup.py"},
269+
),
262270
TraverseProjectVector(
263271
"given_code_and_deps_as_separate_dirs__yields_expected_files",
264272
"mixed_project",

0 commit comments

Comments
 (0)