question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the ability to test all locales at once.

See original GitHub issue

We need test all locales at one moment without manual changes file tests.py. Because by default tests.py will test only en locale. If we want to check other locales then we need manually change value of LANG in file tests.py and it’s not good. One of the best solution is a pytest.fixture

So if anyone can help us with this problem, please let me know. Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Battleroidcommented, Oct 25, 2016

I submitted my attempt at PR #43.

1reaction
Battleroidcommented, Oct 21, 2016

I’ll certainly give it a try!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execute unit tests for multiple locales - Stack Overflow
I have a series of unit tests. The application I am testing is munti-lingual, (English and French). I have created 2 string resource...
Read more >
What practices exist for locale-specific unit testing?
Generally you will not need to duplicate every unit test. You should identify what is really dependent on the locale (good checklist is ......
Read more >
Testing Your Internationalized App - Apple Developer
Click the target in the Run destination menu and choose Edit Scheme. On the right, select Options.
Read more >
Test your app with pseudolocales - Android Developers
Android 4.4. 4 or earlier: On the device, open the Settings app and tap Languages and input > Language preferences > Add a...
Read more >
Test failed due to locale message settings. (with non-English ...
We can set the locale manually by LocalizedMessage#setLocale and this method is called by Checker. I thought setting the locale in the test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found