Skip to content

Commit 103a78c

Browse files
committed
Rename to _log_test_details
1 parent 1d84ad5 commit 103a78c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sqlmesh/core/console.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ def _prompt_promote(self, plan_builder: PlanBuilder) -> None:
19561956
def log_test_results(self, result: ModelTextTestResult, target_dialect: str) -> None:
19571957
divider_length = 70
19581958

1959-
self._log_unit_test_results(result)
1959+
self._log_test_details(result)
19601960
self._print("\n")
19611961

19621962
if result.wasSuccessful():
@@ -1980,7 +1980,7 @@ def log_test_results(self, result: ModelTextTestResult, target_dialect: str) ->
19801980

19811981
def _captured_unit_test_results(self, result: ModelTextTestResult) -> str:
19821982
with self.console.capture() as capture:
1983-
self._log_unit_test_results(result)
1983+
self._log_test_details(result)
19841984
return strip_ansi_codes(capture.get())
19851985

19861986
def show_sql(self, sql: str) -> None:
@@ -2499,10 +2499,10 @@ def show_linter_violations(
24992499
else:
25002500
self.log_warning(msg)
25012501

2502-
def _log_unit_test_results(self, result: ModelTextTestResult) -> None:
2502+
def _log_test_details(self, result: ModelTextTestResult) -> None:
25032503
"""
25042504
This is a helper method that encapsulates the logic for logging the relevant unittest for the result.
2505-
The top level method (`log_test_results`) reuses `_log_unit_test_results` differently based on the console.
2505+
The top level method (`log_test_results`) reuses `_log_test_details` differently based on the console.
25062506
25072507
Args:
25082508
result: The unittest test result that contains metrics like num success, fails, ect.
@@ -3208,7 +3208,7 @@ def log_test_results(self, result: ModelTextTestResult, target_dialect: str) ->
32083208
)
32093209
else:
32103210
self._print("```")
3211-
self._log_unit_test_results(result)
3211+
self._log_test_details(result)
32123212
self._print("```\n\n")
32133213

32143214
self._print(

0 commit comments

Comments
 (0)