Skip to content

Pacman build#241

Closed
cgte wants to merge 2 commits intohjwp:mainfrom
cgte:pacman_build
Closed

Pacman build#241
cgte wants to merge 2 commits intohjwp:mainfrom
cgte:pacman_build

Conversation

@cgte
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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...

@hjwp
Copy link
Copy Markdown
Owner

hjwp commented May 22, 2025

gonna close this for now, have to focus on finalising a draft for print. feel free to reopen !

@hjwp hjwp closed this May 22, 2025
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