Skip to content

Commit 8e4e9d8

Browse files
author
Vadim Mirvald
committed
Add .editorconfig and update video compression tests
1 parent 42c474c commit 8e4e9d8

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.editorconfig

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Python files
14+
[*.py]
15+
indent_style = space
16+
indent_size = 4
17+
max_line_length = 100
18+
19+
# YAML files
20+
[*.{yml,yaml}]
21+
indent_style = space
22+
indent_size = 2
23+
24+
# JSON files
25+
[*.json]
26+
indent_style = space
27+
indent_size = 2
28+
29+
# Markdown files
30+
[*.md]
31+
trim_trailing_whitespace = false
32+
max_line_length = off
33+
34+
# Makefile
35+
[Makefile]
36+
indent_style = tab
37+
38+
# Shell scripts
39+
[*.sh]
40+
indent_style = space
41+
indent_size = 2
42+
43+
# Docker files
44+
[Dockerfile*]
45+
indent_style = space
46+
indent_size = 2
47+
48+
# GitHub Actions
49+
[.github/workflows/*.yml]
50+
indent_style = space
51+
indent_size = 2

tests/test_video_compression.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,10 @@ async def mock_attempt_compression(
10981098
with patch.object(
10991099
video_compressor, "_attempt_compression", side_effect=mock_attempt_compression
11001100
):
1101-
with patch("utils.video_compression.get_file_size_mb", side_effect=mock_get_file_size_mb):
1101+
with patch(
1102+
"utils.video_compression.get_file_size_mb",
1103+
side_effect=mock_get_file_size_mb,
1104+
):
11021105
result = await video_compressor.compress_if_needed(temp_path, 50)
11031106

11041107
# Should have tried multiple quality levels

0 commit comments

Comments
 (0)