Ejemplo n.º 1
0
 def test_source_is_formatted(self, filename: str) -> None:
     path = THIS_DIR.parent / filename
     source, expected = read_data(str(path), data=False)
     actual = fs(source, mode=DEFAULT_MODE)
     self.assertFormatEqual(expected, actual)
     black.assert_equivalent(source, actual)
     black.assert_stable(source, actual, DEFAULT_MODE)
     self.assertFalse(ff(path))
Ejemplo n.º 2
0
 def test_source_is_formatted(self, filename: str) -> None:
     path = THIS_DIR.parent / filename
     self.check_file(str(path), DEFAULT_MODE, data=False)
     self.assertFalse(ff(path))