(log_file: Path, tmp_path: Path, monkeypatch)
| 161 | "log_file", [pytest.param(x, id=x.stem) for x in test_dir.glob("data/flows/*.mitm")] |
| 162 | ) |
| 163 | def test_savehar(log_file: Path, tmp_path: Path, monkeypatch): |
| 164 | monkeypatch.setattr(version, "VERSION", "1.2.3") |
| 165 | s = SaveHar() |
| 166 | |
| 167 | flows = io.read_flows_from_paths([log_file]) |
| 168 | |
| 169 | s.export_har(flows, types.Path(tmp_path / "testing_flow.har")) |
| 170 | expected_har = json.loads(log_file.with_suffix(".har").read_bytes()) |
| 171 | actual_har = json.loads(Path(tmp_path / "testing_flow.har").read_bytes()) |
| 172 | |
| 173 | assert actual_har == expected_har |
| 174 | |
| 175 | |
| 176 | def test_flow_entry(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…