Skip to content

Commit 935fb29

Browse files
committed
ruff
1 parent 360da94 commit 935fb29

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

tests/gdocs/test_paragraph_style.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ def test_negative_indent_first_line_allowed(self, vm):
8585

8686
def test_batch_validation_wired_up(self, vm):
8787
valid_ops = [
88-
{"type": "update_paragraph_style", "start_index": 1,
89-
"end_index": 20, "heading_level": 2},
88+
{
89+
"type": "update_paragraph_style",
90+
"start_index": 1,
91+
"end_index": 20,
92+
"heading_level": 2,
93+
},
9094
]
9195
assert vm.validate_batch_operations(valid_ops)[0]
9296

@@ -106,8 +110,11 @@ def manager(self):
106110
def test_build_request_and_description(self, manager):
107111
op = {
108112
"type": "update_paragraph_style",
109-
"start_index": 1, "end_index": 50,
110-
"heading_level": 2, "alignment": "CENTER", "line_spacing": 1.5,
113+
"start_index": 1,
114+
"end_index": 50,
115+
"heading_level": 2,
116+
"alignment": "CENTER",
117+
"line_spacing": 1.5,
111118
}
112119
request, desc = manager._build_operation_request(op, "update_paragraph_style")
113120
assert "updateParagraphStyle" in request
@@ -119,8 +126,14 @@ async def test_end_to_end_execute(self, manager):
119126
manager._execute_batch_requests = AsyncMock(return_value={"replies": [{}]})
120127
success, message, meta = await manager.execute_batch_operations(
121128
"doc-123",
122-
[{"type": "update_paragraph_style", "start_index": 1,
123-
"end_index": 20, "heading_level": 1}],
129+
[
130+
{
131+
"type": "update_paragraph_style",
132+
"start_index": 1,
133+
"end_index": 20,
134+
"heading_level": 1,
135+
}
136+
],
124137
)
125138
assert success
126139
assert meta["operations_count"] == 1

0 commit comments

Comments
 (0)