Skip to content

Commit ba3e8eb

Browse files
committed
don't format removals tests
1 parent 32c4edb commit ba3e8eb

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

tests/data/async/removals.py

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
from common import a, b, c # these should stick around
1+
# fmt: off
2+
from common import (
3+
a, b , c # these should stick around
4+
)
25

36
# these imports should be removed
4-
from async_only import async_a, async_b, async_c # unasync: remove
5-
6-
CONST = "foo"
7-
ASYNC_CONST = "bar" # unasync: remove
7+
from async_only import ( # unasync: remove
8+
async_a, async_b,
9+
async_c
10+
)
811

12+
CONST = 'foo'
13+
ASYNC_CONST = 'bar' # unasync: remove
914

1015
async def foo():
11-
print("this function should stick around")
12-
16+
print('this function should stick around')
1317

14-
async def async_only(): # unasync: remove
15-
print("this function will be removed entirely")
18+
async def async_only(): # unasync: remove
19+
print('this function will be removed entirely')
1620

1721

18-
class AsyncOnly: # unasync: remove
22+
class AsyncOnly: # unasync: remove
1923
async def foo(self):
20-
print("the entire class should be removed")
24+
print('the entire class should be removed')
2125

2226

2327
class Foo:
2428
async def foobar(self):
25-
print("This method should stick around")
29+
print('This method should stick around')
2630

27-
async def async_only_method(self): # unasync: remove
28-
print("only this method should be removed")
31+
async def async_only_method(self): # unasync: remove
32+
print('only this method should be removed')
2933

3034
async def another_method(self):
31-
print("This line should stick around")
32-
await self.something( # unasync: remove
33-
"the content in this line should be removed"
34-
)
35+
print('This line should stick around')
36+
await self.something("the content in this line should be removed") # unasync: remove
37+

tests/data/sync/removals.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
from common import a, b, c # these should stick around
1+
# fmt: off
2+
from common import (
3+
a, b , c # these should stick around
4+
)
25

36
# these imports should be removed
47

5-
CONST = "foo"
6-
8+
CONST = 'foo'
79

810
def foo():
9-
print("this function should stick around")
11+
print('this function should stick around')
12+
13+
14+
1015

1116

1217
class Foo:
1318
def foobar(self):
14-
print("This method should stick around")
19+
print('This method should stick around')
20+
1521

1622
def another_method(self):
17-
print("This line should stick around")
23+
print('This line should stick around')
24+

0 commit comments

Comments
 (0)