]>
crepu.dev Git - config.git/blob - djavu-asus/elpa/elpy-20230803.1455/elpy/tests/test_auto_pep8.py
3 """Tests for the elpy.autopep8 module"""
8 from elpy
import auto_pep8
9 from elpy
.tests
.support
import BackendTestCase
12 class Autopep8TestCase(BackendTestCase
):
15 if not auto_pep8
.autopep8
:
16 raise unittest
.SkipTest
18 def test_fix_code(self
):
19 code_block
= 'x= 123\n'
20 new_block
= auto_pep8
.fix_code(code_block
, os
.getcwd())
21 self
.assertEqual(new_block
, 'x = 123\n')