Skip to content

Commit 70ad4fa

Browse files
Bordalantiga
authored andcommitted
tests: fix missing import
1 parent b7e7268 commit 70ad4fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_pytorch/callbacks/progress/test_tqdm_progress_bar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from collections import defaultdict
1919
from typing import Union
2020
from unittest import mock
21-
from unittest.mock import ANY, Mock, PropertyMock, call
21+
from unittest.mock import ANY, Mock, PropertyMock, call, patch
2222

2323
import pytest
2424
import torch
@@ -803,7 +803,7 @@ def test_tqdm_leave(leave, tmp_path):
803803
assert pbar.init_train_tqdm.call_count == (4 if leave else 1)
804804

805805

806-
@patch("lightning.pytorch.trainer.connectors.callback_connector._RICH_AVAILABLE", False)
806+
@patch("lightning.pytorch.callbacks.progress.rich_progress._RICH_AVAILABLE", False)
807807
def test_tqdm_progress_bar_reset_behavior(tmp_path):
808808
"""Test that progress bars call reset() without parameters and set total separately."""
809809
model = BoringModel()

0 commit comments

Comments
 (0)