]> crepu.dev Git - config.git/blob - djavu-asus/elpa/elpy-20230803.1455/elpy/tests/test_auto_pep8.py
Configuracion en desarrollo PC pega
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / tests / test_auto_pep8.py
1 # coding: utf-8
2
3 """Tests for the elpy.autopep8 module"""
4
5 import unittest
6 import os
7
8 from elpy import auto_pep8
9 from elpy.tests.support import BackendTestCase
10
11
12 class Autopep8TestCase(BackendTestCase):
13
14 def setUp(self):
15 if not auto_pep8.autopep8:
16 raise unittest.SkipTest
17
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')