]> crepu.dev Git - config.git/blame_incremental - djavu-asus/elpa/elpy-20230803.1455/elpy/tests/test_auto_pep8.py
Se agregan las configuraciones del tarro
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / tests / test_auto_pep8.py
... / ...
CommitLineData
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')