()
| 68 | |
| 69 | |
| 70 | def test_no_files_2(): |
| 71 | if not os.path.exists('/tmp/code2flow/no_source_dir'): |
| 72 | os.mkdir('/tmp/code2flow/no_source_dir') |
| 73 | if not os.path.exists('/tmp/code2flow/no_source_dir/fakefile'): |
| 74 | with open('/tmp/code2flow/no_source_dir/fakefile', 'w') as f: |
| 75 | f.write("hello world") |
| 76 | |
| 77 | with pytest.raises(AssertionError): |
| 78 | code2flow('/tmp/code2flow/no_source_dir', |
| 79 | output_file=IMG_PATH) |
| 80 | |
| 81 | with pytest.raises(AssertionError): |
| 82 | code2flow('/tmp/code2flow/no_source_dir', |
| 83 | language='py', |
| 84 | output_file=IMG_PATH) |
| 85 | |
| 86 | |
| 87 | def test_json(): |
nothing calls this directly
no test coverage detected