← Về thư mục
tests/get-available-resources/test_scripts.py
- canonical_snapshot · function · L35-L150 — def canonical_snapshot() -> dict
- CommonSafetyTests · class · L153-L185 — class CommonSafetyTests(unittest.TestCase)
- test_stdout_is_default_and_file_output_is_private · method · L154-L173 — def test_stdout_is_default_and_file_output_is_private(self) -> None
- test_snapshot_reader_rejects_symlink · method · L175-L185 — def test_snapshot_reader_rejects_symlink(self) -> None
- ParserTests · class · L188-L242 — class ParserTests(unittest.TestCase)
- test_cpu_list_is_counted_without_expansion · method · L189-L193 — def test_cpu_list_is_counted_without_expansion(self) -> None
- test_nvidia_csv_is_typed_and_does_not_expose_uuid · method · L195-L201 — def test_nvidia_csv_is_typed_and_does_not_expose_uuid(self) -> None
- test_amd_and_apple_accelerators_are_not_cuda · method · L203-L215 — def test_amd_and_apple_accelerators_are_not_cuda(self) -> None
- test_accelerator_probe_timeout_is_a_partial_warning · method · L217-L242 — def test_accelerator_probe_timeout_is_a_partial_warning(self) -> None
- fake_run · function · L218-L221 — def fake_run(command: tuple[str, ...], timeout: float) -> dict
- LinuxCgroupTests · class · L245-L269 — class LinuxCgroupTests(unittest.TestCase)
- test_hierarchical_limits_use_most_restrictive_ancestor · method · L246-L258 — def test_hierarchical_limits_use_most_restrictive_ancestor(self) -> None
- reader · function · L250-L254 — def reader(path: Path) -> str
- test_cpu_quota_is_capacity_not_a_topology_count · method · L260-L269 — def test_cpu_quota_is_capacity_not_a_topology_count(self) -> None
- SchedulerTests · class · L272-L300 — class SchedulerTests(unittest.TestCase)
- test_slurm_named_allocation_is_bounded_and_redacted · method · L273-L288 — def test_slurm_named_allocation_is_bounded_and_redacted(self) -> None
- test_visibility_values_are_summarized_not_returned · method · L290-L300 — def test_visibility_values_are_summarized_not_returned(self) -> None
- PlatformMockTests · class · L303-L449 — class PlatformMockTests(unittest.TestCase)
- test_macos_sysctl_and_unified_memory · method · L304-L334 — def test_macos_sysctl_and_unified_memory(self) -> None
- test_windows_psutil_affinity_and_processor_groups · method · L336-L362 — def test_windows_psutil_affinity_and_processor_groups(self) -> None
- FakeProcess · class · L339-L341 — class FakeProcess
- cpu_affinity · method · L340-L341 — def cpu_affinity(self) -> list[int]
- test_windows_psutil_memory_is_kept_separate_from_limits · method · L364-L394 — def test_windows_psutil_memory_is_kept_separate_from_limits(self) -> None
- test_linux_partial_failure_still_returns_valid_snapshot · method · L396-L449 — def test_linux_partial_failure_still_returns_valid_snapshot(self) -> None
- reader · function · L404-L407 — def reader(path: Path) -> str
- SnapshotToolTests · class · L452-L478 — class SnapshotToolTests(unittest.TestCase)
- test_validator_accepts_canonical_snapshot · method · L453-L455 — def test_validator_accepts_canonical_snapshot(self) -> None
- test_validator_rejects_impossible_disk_order · method · L457-L462 — def test_validator_rejects_impossible_disk_order(self) -> None
- test_diff_ignores_timestamp_by_default · method · L464-L478 — def test_diff_ignores_timestamp_by_default(self) -> None
- PlannerTests · class · L481-L512 — class PlannerTests(unittest.TestCase)
- test_worker_plan_uses_cpu_memory_tasks_and_request · method · L482-L496 — def test_worker_plan_uses_cpu_memory_tasks_and_request(self) -> None
- test_io_plan_is_bounded · method · L498-L502 — def test_io_plan_is_bounded(self) -> None
- test_accelerator_plan_executes_nothing · method · L504-L512 — def test_accelerator_plan_executes_nothing(self) -> None