Test different output formats
(fixtures)
| 96 | |
| 97 | @pytest.mark.e2e |
| 98 | def test_text_scan_output_e2e(fixtures): |
| 99 | """ |
| 100 | Test different output formats |
| 101 | """ |
| 102 | scan_path = fixtures.path('flask_app.py') |
| 103 | |
| 104 | # Test plain text output |
| 105 | cli = fixtures.get_cli_output(['scan', scan_path, '--format', 'text']) |
| 106 | output = cli.output |
| 107 | assert 'Scan results for ' in output |
| 108 | assert 'Scan score: ' in output |
| 109 | # TODO: add more patterns to test for in text output |
| 110 | |
| 111 | |
| 112 | def test_sqlite_scan_output(fixtures, tmp_path: Path): |
nothing calls this directly
no test coverage detected