MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / test_no_files_2

Function test_no_files_2

tests/test_interface.py:70–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def 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
87def test_json():

Callers

nothing calls this directly

Calls 1

code2flowFunction · 0.90

Tested by

no test coverage detected