]> crepu.dev Git - config.git/blame - djavu-asus/elpa/elpy-20230803.1455/elpy/tests/test_auto_pep8.py
Actualizado el Readme
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / tests / test_auto_pep8.py
CommitLineData
53e6db90
DC
1# coding: utf-8
2
3"""Tests for the elpy.autopep8 module"""
4
5import unittest
6import os
7
8from elpy import auto_pep8
9from elpy.tests.support import BackendTestCase
10
11
12class 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')