Skip to content

Commit

Permalink
fixed test cases after changing the create alias behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLoLf committed Jun 24, 2024
1 parent ad3eab6 commit 0631d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def setUp(self):
def test_single_app_alias_creation(self, mock_run, mock_create_alias):
mock_run.return_value.stdout = self.mock_flatpak_list
main.main()
mock_create_alias.assert_called_once_with('libreoffice', 'org.libreoffice.LibreOffice')
mock_create_alias.assert_called_once_with({'libreoffice': 'org.libreoffice.LibreOffice'})

@patch('main.create_alias')
@patch('subprocess.run')
def test_special_cases_alias_creation(self, mock_run, mock_create_alias):
mock_run.return_value.stdout = "Bitwarden\tcom.bitwarden.desktop\t2024.6.1\tstable\tflathub\tsystem\n"
main.main()
mock_create_alias.assert_called_once_with('bw', 'com.bitwarden.desktop')
mock_create_alias.assert_called_once_with({'bw': 'com.bitwarden.desktop'})

@patch('main.create_alias')
@patch('subprocess.run')
Expand Down

0 comments on commit 0631d96

Please sign in to comment.