Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
l8556 committed Dec 13, 2024
1 parent 07aec2e commit 411a184
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frameworks/editors/onlyoffice/x2ttester/X2tTesterConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class X2tTesterConfig(BaseModel):
output_dir: str
core_dir: str
report_path: str
fonts_dir: Optional[str] = None
timeout: int
cores: int = 1
timeout: Optional[int] = None
fonts_dir: Optional[str] = None
timestamp: bool = True
delete: bool = False
errors_only: bool = False
Expand Down
3 changes: 1 addition & 2 deletions tests/conversion_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
from .x2ttester_conversion import X2ttesterTestConfig
from .x2ttester_conversion import X2tTesterConversion
from .x2ttester_conversion import X2ttesterTestConfig, X2tTesterConversion
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class X2ttesterReport(Report):
def __init__(self, test_config: X2ttesterTestConfig):
super().__init__()
self.config = test_config
self.reports_dir = test_config.reports_dir
self.tmp_dir = test_config.tmp_dir
self.errors_only: bool = test_config.errors_only
self.reports_dir = self.config.reports_dir
self.os = HostInfo().os

def path(self) -> str:
Expand Down Expand Up @@ -88,7 +86,7 @@ def _rename_report_for_tg(self, report_path: str, new_name: str) -> str:
return new_path

def _errors_list(self, df) -> list:
errors = df[df.Output_size == 0.0] if not self.errors_only else df
errors = df[df.Output_size == 0.0] if not self.config.errors_only else df
mask = (errors.BugInfo == 0)
return errors.loc[mask, 'Input_file'].unique().tolist()

Expand Down

0 comments on commit 411a184

Please sign in to comment.