Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alkazar committed May 10, 2024
1 parent 0e236f1 commit 6756dbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Empty file added tests/files/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6756dbf

Please sign in to comment.