Skip to content

Commit 303c8a1

Browse files
committed
Allow functions qmods to have duplicates
1 parent 2915bd2 commit 303c8a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/internal/test_notebook_unique_name.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def test_unique_notebook_name():
1212

1313
def test_unique_qmod_name():
1414
all_qmods = ROOT.rglob("*.qmod")
15-
assert not duplicate_base_names(all_qmods)
15+
# exclude `functions/`
16+
qmods = [path for path in all_qmods if "functions" not in path.parts]
17+
assert not duplicate_base_names(qmods)
1618

1719

1820
def duplicate_base_names(files: Iterable[Path]) -> bool:

0 commit comments

Comments
 (0)