From 6756dbf832986059560bcc8c8a09e6837853cb63 Mon Sep 17 00:00:00 2001 From: Alesh Slovak Date: Fri, 10 May 2024 19:54:36 -0400 Subject: [PATCH] fix failing tests --- tests/files/image.png | 0 tests/test_scripts.py | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/files/image.png diff --git a/tests/files/image.png b/tests/files/image.png new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_scripts.py b/tests/test_scripts.py index 93eb0b13..6f577f81 100644 --- a/tests/test_scripts.py +++ b/tests/test_scripts.py @@ -55,6 +55,14 @@ def fake_data(fs, target_path=os.path.expanduser( '~/.local/share/chimera/shortcuts/multi.yaml') ) + fs.add_real_file(os.path.join(files_path, 'image.png'), + read_only=True, + target_path='/usr/share/chimera/images/flathub/org.supertuxproject.SuperTux.png', + ) + fs.add_real_file(os.path.join(files_path, 'image.png'), + read_only=False, + target_path='/home/joaquin/develop/chimera/images/flathub/org.supertuxproject.SuperTux.png', + ) # Patch STEAM_USER_DIRS as per pyfakefs limitations monkeypatch.setattr(chimera_app.context, 'STEAM_USER_DIRS',