Skip to content

Commit

Permalink
Fix testcases after codebase changes
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <[email protected]>
  • Loading branch information
gridhead committed Oct 29, 2024
1 parent 573bd44 commit 699078c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/face/scan/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_scan_arti_load_nope(scantest: ScanDialog, qtbot: QtBot, mocker: MockerF
"""
Perform the action of loading the artifact information
"""
mocker.patch.object(file.FileHandling, "load_screenshot", return_value=(False, None, None))
mocker.patch.object(file.FileHandling, "load_screenshot_with_picker", return_value=(False, None, None))
qtbot.mouseClick(scantest.arti_cnvs_load, Qt.LeftButton)

"""
Expand Down Expand Up @@ -361,7 +361,7 @@ def test_scan_tessexec_load_fail(scantest: ScanDialog, qtbot: QtBot, mocker: Moc
"""
Perform the action of loading the Tesseract OCR executable
"""
mocker.patch.object(file.FileHandling, "load_tessexec", side_effect=Exception)
mocker.patch.object(file.FileHandling, "load_tessexec_with_picker", side_effect=Exception)
qtbot.mouseClick(scantest.arti_cnvs_conf, Qt.LeftButton)

"""
Expand Down

0 comments on commit 699078c

Please sign in to comment.