MCPcopy Create free account
hub / github.com/PyCQA/pyflakes / test_singleFile

Method test_singleFile

pyflakes/test/test_api.py:121–127  ·  view source on GitHub ↗

If the directory contains one Python file, C{iterSourceCode} will find it.

(self)

Source from the content-addressed store, hash-verified

119 self.assertEqual(list(iterSourceCode([self.tempdir])), [])
120
121 def test_singleFile(self):
122 """
123 If the directory contains one Python file, C{iterSourceCode} will find
124 it.
125 """
126 childpath = self.makeEmptyFile('foo.py')
127 self.assertEqual(list(iterSourceCode([self.tempdir])), [childpath])
128
129 def test_onlyPythonSource(self):
130 """

Callers

nothing calls this directly

Calls 2

makeEmptyFileMethod · 0.95
iterSourceCodeFunction · 0.90

Tested by

no test coverage detected