Skip to content

Commit ac56970

Browse files
committed
added more guards against using API files for tests
1 parent 15ea23f commit ac56970

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/test_build2.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,12 @@ def find_local_files() -> Tuple[str, ...]:
276276
continue
277277
if "html" in file:
278278
continue
279+
if file in ("process.py", "objective.py", "encoding.py",
280+
"operators.py", "algorithm.py", "space.py"):
281+
continue
279282
if file.endswith(".py"):
280283
full = os.path.join(package, file)
281-
if "moptipy/api/" in full:
284+
if "moptipy/api" in full:
282285
continue
283286
if os.path.isfile(full):
284287
result.append(Path.file(full))
@@ -311,6 +314,11 @@ def find_repo_files(repo: Tuple[str, str]) -> Tuple[str, ...]:
311314
continue
312315
if "html" in f:
313316
continue
317+
if f in ("process.py", "objective.py", "encoding.py",
318+
"operators.py", "algorithm.py", "space.py"):
319+
continue
320+
if "moptipy/api" in f:
321+
continue
314322
if "/" in f:
315323
result.append(f)
316324
assert len(result) > 0

0 commit comments

Comments
 (0)