-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flatpak] fix: category formatting | sorting categories
- Loading branch information
Showing
6 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from unittest import TestCase | ||
|
||
from bauh.gems.flatpak.worker import FlatpakAsyncDataLoader | ||
|
||
|
||
class FlatpakAsyncDataLoaderTest(TestCase): | ||
|
||
def test_format_category(self): | ||
self.assertEqual('irc client', FlatpakAsyncDataLoader.format_category('IRCClient')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('TextEditor')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('Text Editor')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('text editor')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('Text editor')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('text Editor')) | ||
self.assertEqual('text editor', FlatpakAsyncDataLoader.format_category('textEditor')) | ||
self.assertEqual('ide', FlatpakAsyncDataLoader.format_category('IDE')) | ||
self.assertEqual('faster irc client', FlatpakAsyncDataLoader.format_category('Faster IRCClient')) | ||
self.assertEqual('3d graphics', FlatpakAsyncDataLoader.format_category('3DGraphics')) | ||
self.assertEqual('32d graphics', FlatpakAsyncDataLoader.format_category('32DGraphics')) | ||
self.assertEqual('d32 graphics', FlatpakAsyncDataLoader.format_category('D32Graphics')) |