Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make the sdkharness leaf-check unit tests ignore `__pycache__` and other non-leaf entries.
10 changes: 9 additions & 1 deletion test/unit/test_sdkharness_conformance_resilience_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,18 @@ def test_child_environment_scrubs_real_b2_credentials_and_pins_checkout():

LEAF_ROOT = Path(__file__).parents[2] / '.sdkharness' / 'tests'
LEAVES = sorted(
path for level in ('conformance', 'resilience') for path in (LEAF_ROOT / level).iterdir()
path
for level in ('conformance', 'resilience')
for path in (LEAF_ROOT / level).iterdir()
if path.is_file() and not path.name.startswith(('__', '.'))
)


def test_leaves_are_regular_files_only():
assert LEAVES
assert all(path.is_file() and not path.name.startswith('__') for path in LEAVES)


def run_leaf(path, extra_environment):
import os
import subprocess
Expand Down
Loading