-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pacman build #241
base: main
Are you sure you want to change the base?
Pacman build #241
Conversation
Installing le locale instead of trying to convert to any possible locale
import unittest | ||
from sourcetree import ( | ||
SourceTree, | ||
) | ||
|
||
|
||
class RequirementTestCase(unittest.TestCase): | ||
def test_en_GB_locale_is_installed(self): | ||
sourcetree = SourceTree() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use pytest for tests:
import unittest | |
from sourcetree import ( | |
SourceTree, | |
) | |
class RequirementTestCase(unittest.TestCase): | |
def test_en_GB_locale_is_installed(self): | |
sourcetree = SourceTree() | |
from sourcetree import SourceTree | |
def test_en_GB_locale_is_installed(self): | |
sourcetree = SourceTree() |
|
||
assert ( | ||
"en_GB.utf8" in locales, | ||
"Lacking en_GB locale. " "This interferes with checks for output.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh even if you do have utf8 locale installed, the chapter 1 tests fail sometimes (eg on a mac). i think i added a workaround/hack for this somewhere...
This fixes a missing locate warning interfering with process output expectations.