-
Notifications
You must be signed in to change notification settings - Fork 958
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ca8bf0
commit b49e754
Showing
8 changed files
with
127 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ dist/ | |
__pycache__/ | ||
build/ | ||
.pytest_cache/ | ||
.coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from gui import Application, LanguagesComboBox | ||
|
||
|
||
class TestApplication: | ||
app = Application() | ||
|
||
def test_should_show_window_title(self): | ||
assert self.app.window.windowTitle() == 'Buzz' | ||
|
||
|
||
class TestLanguagesComboBox: | ||
languagesComboxBox = LanguagesComboBox('en') | ||
|
||
def test_should_show_sorted_whisper_languages(self): | ||
assert self.languagesComboxBox.itemText(0) == 'Detect Language' | ||
assert self.languagesComboxBox.itemText(10) == 'Belarusian' | ||
assert self.languagesComboxBox.itemText(20) == 'Dutch' | ||
assert self.languagesComboxBox.itemText(30) == 'Gujarati' | ||
assert self.languagesComboxBox.itemText(40) == 'Japanese' | ||
assert self.languagesComboxBox.itemText(50) == 'Lithuanian' | ||
|
||
def test_should_select_default_language(self): | ||
assert self.languagesComboxBox.currentText() == 'English' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.