Skip to content

Commit dba762e

Browse files
authored
Fix typos, bug, docs, and improve test (#3678)
1 parent 9d5caf2 commit dba762e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

scripts/find_orphaned_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def main():
420420
human_readable_size = get_human_readable_size(total_size)
421421

422422
confirm = input(
423-
f"⚠️ WARNING: This will delete {total_files} image assets ({human_readable_size}). Type 'YES' to confirm: "
423+
f"⚠️ WARNING: This will delete {total_files} image assets ({human_readable_size}). Type 'YES' to confirm: "
424424
)
425425

426426
if confirm.strip() == "YES":

src/zenml/config/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _ensure_cron_or_periodic_schedule_configured(self) -> "Schedule":
108108
if self.cron_expression and periodic_schedule:
109109
logger.warning(
110110
"This schedule was created with a cron expression as well as "
111-
"values for `start_time` and `interval_seconds`. The resulting "
111+
"values for `start_time` and `interval_second`. The resulting "
112112
"behavior depends on the concrete orchestrator implementation "
113113
"but will usually ignore the interval and use the cron "
114114
"expression."

src/zenml/services/local/local_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ def _stop_daemon(self, force: bool = False) -> None:
414414
p = psutil.Process(pid)
415415
except psutil.Error:
416416
logger.error(
417-
"Could not find process for for service '%s' ...", self
417+
"Could not find process for service '%s' ...",
418+
self,
418419
)
419420
return
420421
if force:

tests/unit/utils/test_io_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_write_file_contents_as_string_works(tmp_path):
7474
def test_write_file_contents_as_string_fails_with_non_string_types(tmp_path):
7575
"""Tests writing to file."""
7676
file_path = os.path.join(tmp_path, "test.txt")
77-
with pytest.raises(ValueError):
77+
with pytest.raises(ValueError, match="Content must be of type str"):
7878
io_utils.write_file_contents_as_string(file_path, 1)
7979

8080

0 commit comments

Comments
 (0)