From 06e7214542bd8f2231f747b1a2f80ddce42eb7a4 Mon Sep 17 00:00:00 2001
From: Shounak Dey YOUR ARTIFACT SCREENSHOT WILL SHOW UP HERE IF YOU HAVE AN ARTIFACT SCREENSHOT IN YOUR CLIPBOARD, SIMPLY PRESS CTRL + V TO PASTE IT HERE DRAG AND DROP WORKS AS WELL
YOUR ARTIFACT SCREENSHOT WILL SHOW UP HERE
IF YOU HAVE AN ARTIFACT SCREENSHOT IN YOUR CLIPBOARD, SIMPLY PRESS CTRL + V TO PASTE IT HERE
DRAG AND DROP WORKS AS WELL
") diff --git a/test/face/scan/test_scan.py b/test/face/scan/test_scan.py index e7ec1e42..076bc06b 100644 --- a/test/face/scan/test_scan.py +++ b/test/face/scan/test_scan.py @@ -249,6 +249,11 @@ def test_scan_arti_scan_fail(scantest: ScanDialog, qtbot: QtBot, mocker: MockerF assert "Please select an accurate screenshot." in scantest.dialog.text() assert scantest.dialog.isVisible() + """ + Cleanup the temporary files from temp directory + """ + remove(savefile.name) + @pytest.mark.parametrize( "_", @@ -703,14 +708,6 @@ def test_scan_arti_scan_fail_ic(scantest: ScanDialog, _: None) -> None: :return: """ - """ - Create a temporary file filled with random data to simulate a failure when trying to open an - image using PIL.Image.open(). - """ - savefile = NamedTemporaryFile(prefix="gi-loadouts-", suffix=".exe", delete=False, mode="wb") - savefile.write(randbytes(512*1024)) - savefile.close() - """ Perform the action of loading the artifact information """ @@ -727,11 +724,6 @@ def test_scan_arti_scan_fail_ic(scantest: ScanDialog, _: None) -> None: assert "Please select an accurate screenshot." in scantest.dialog.text() assert scantest.dialog.isVisible() - """ - Cleanup the temporary files from temp directory - """ - remove(savefile.name) - @pytest.mark.parametrize( "_",