(source_path: Path, test_id: int)
| 18 | |
| 19 | def test_crawl_sources(tmp_path: Path) -> None: |
| 20 | def setup_source(source_path: Path, test_id: int) -> None: |
| 21 | source_path.mkdir(parents=True) |
| 22 | (source_path / "metrics.csv").write_text( |
| 23 | f"""test_col_1, test_col_2 |
| 24 | {test_id}1, {test_id}2 |
| 25 | {test_id}3, {test_id}4 |
| 26 | """ |
| 27 | ) |
| 28 | (source_path / "metadata.json").write_text( |
| 29 | f"""{{ |
| 30 | "suite_name": "test", |
| 31 | "argv": [], |
| 32 | "user": "test_user", |
| 33 | "hostname": "test_host", |
| 34 | "timestamp": "20220808_085348.161698", |
| 35 | "py_ver": "3.10.0", |
| 36 | "tf_ver": "2.8.0", |
| 37 | "np_ver": "1.20.0", |
| 38 | "ram": 12, |
| 39 | "cpu_name": "Test CPU", |
| 40 | "cpu_count": 8, |
| 41 | "cpu_frequency": 14, |
| 42 | "gpu_names": ["Test GPU"], |
| 43 | "git_branch_name": "develop", |
| 44 | "git_commit": "1234", |
| 45 | "run_id": "test_id_{test_id}" |
| 46 | }} |
| 47 | """ |
| 48 | ) |
| 49 | |
| 50 | source1 = tmp_path / "source1" |
| 51 | source2 = tmp_path / "source2" |
no outgoing calls
no test coverage detected
searching dependent graphs…