Skip to content

Commit 7716136

Browse files
committed
test: fix changed function name
1 parent d9a9eb5 commit 7716136

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_lock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,10 @@ async def test_get_lock_objs_from_path_extra_expired(self, mocker):
374374
mocker.patch("asgi_webdav.constants.DAVLockObj.is_expired", return_value=True)
375375
assert await self.lock_keeper.get_lock_objs_from_path(LOCK_RES_PATH1) == []
376376

377-
async def test_get_lock_objs_from_path_extra_check_path_failed(self, mocker):
378-
mocker.patch("asgi_webdav.constants.DAVLockObj.check_path", return_value=False)
377+
async def test_get_lock_objs_from_path_extra_is_locking_path_failed(self, mocker):
378+
mocker.patch(
379+
"asgi_webdav.constants.DAVLockObj.is_locking_path", return_value=False
380+
)
379381
assert await self.lock_keeper.get_lock_objs_from_path(LOCK_RES_PATH1) == []
380382

381383
async def test_is_locking(self):

0 commit comments

Comments
 (0)