Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Pacman build #241

wants to merge 2 commits into from

Conversation

cgte
Copy link

@cgte cgte commented May 17, 2024

This fixes a missing locate warning interfering with process output expectations.

cdgte added 2 commits April 24, 2024 11:47
Installing le locale instead of trying to convert to any possible
locale
Comment on lines +1 to +9
import unittest
from sourcetree import (
SourceTree,
)


class RequirementTestCase(unittest.TestCase):
def test_en_GB_locale_is_installed(self):
sourcetree = SourceTree()
Copy link
Owner

@hjwp hjwp May 20, 2024

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:

Suggested change
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.",
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants