Skip to content

Commit 2e620ed

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_traverse_project.py

+12
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,18 @@ 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={
268+
"subdir2/notebook.ipynb",
269+
"subdir2/script.py",
270+
"subdir2/setup.py",
271+
},
272+
expect_deps_src={"subdir2/setup.py"},
273+
),
262274
TraverseProjectVector(
263275
"given_code_and_deps_as_separate_dirs__yields_expected_files",
264276
"mixed_project",

0 commit comments

Comments
 (0)