Python pandas.util.testing.get_locales() Examples

The following are 18 code examples of pandas.util.testing.get_locales(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module pandas.util.testing , or try the search function .
Example #1
Source File: test_locale.py    From predictive-maintenance-using-machine-learning with Apache License 2.0 5 votes vote down vote up
def test_get_locales_prefix():
    first_locale = _all_locales[0]
    assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #2
Source File: test_testing.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def test_locale(self):
        if sys.platform == 'win32':
            pytest.skip(
                "skipping on win platforms as locale not available")

        # GH9744
        locales = tm.get_locales()
        assert len(locales) >= 1 
Example #3
Source File: test_util.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def test_get_locales_prefix(self):
        if len(self.locales) == 1:
            pytest.skip("Only a single locale found, no point in "
                        "trying to test filtering locale prefixes")
        first_locale = self.locales[0]
        assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #4
Source File: test_util.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def test_get_locales(self):
        # all systems should have at least a single locale
        assert len(tm.get_locales()) > 0 
Example #5
Source File: test_util.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def setup_class(cls):
        cls.locales = tm.get_locales()
        cls.current_locale = locale.getlocale()

        if not cls.locales:
            pytest.skip("No locales found") 
Example #6
Source File: test_testing.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def test_locale(self):
        if sys.platform == 'win32':
            pytest.skip(
                "skipping on win platforms as locale not available")

        # GH9744
        locales = tm.get_locales()
        assert len(locales) >= 1 
Example #7
Source File: test_util.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def test_get_locales_prefix(self):
        if len(self.locales) == 1:
            pytest.skip("Only a single locale found, no point in "
                        "trying to test filtering locale prefixes")
        first_locale = self.locales[0]
        assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #8
Source File: test_util.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def test_get_locales(self):
        # all systems should have at least a single locale
        assert len(tm.get_locales()) > 0 
Example #9
Source File: test_util.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def setup_class(cls):
        cls.locales = tm.get_locales()
        cls.current_locale = locale.getlocale()

        if not cls.locales:
            pytest.skip("No locales found")

        tm._skip_if_windows() 
Example #10
Source File: test_locale.py    From recruit with Apache License 2.0 5 votes vote down vote up
def test_get_locales_prefix():
    first_locale = _all_locales[0]
    assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #11
Source File: test_data.py    From Computable with MIT License 5 votes vote down vote up
def setUpClass(cls):
        super(TestGoogle, cls).setUpClass()
        cls.locales = tm.get_locales(prefix='en_US')
        if not cls.locales:
            raise nose.SkipTest("US English locale not available for testing") 
Example #12
Source File: test_util.py    From Computable with MIT License 5 votes vote down vote up
def test_get_locales_prefix(self):
        if len(self.locales) == 1:
            raise nose.SkipTest("Only a single locale found, no point in "
                                "trying to test filtering locale prefixes")
        first_locale = self.locales[0]
        assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #13
Source File: test_util.py    From Computable with MIT License 5 votes vote down vote up
def test_get_locales(self):
        # all systems should have at least a single locale
        assert len(tm.get_locales()) > 0 
Example #14
Source File: test_util.py    From Computable with MIT License 5 votes vote down vote up
def setUpClass(cls):
        super(TestLocaleUtils, cls).setUpClass()
        cls.locales = tm.get_locales()

        if not cls.locales:
            raise nose.SkipTest("No locales found")

        if os.name == 'nt':  # we're on windows
            raise nose.SkipTest("Running on Windows") 
Example #15
Source File: test_testing.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def test_locale(self):
        if sys.platform == 'win32':
            pytest.skip(
                "skipping on win platforms as locale not available")

        # GH9744
        locales = tm.get_locales()
        assert len(locales) >= 1 
Example #16
Source File: test_util.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def test_get_locales_prefix(self):
        if len(self.locales) == 1:
            pytest.skip("Only a single locale found, no point in "
                        "trying to test filtering locale prefixes")
        first_locale = self.locales[0]
        assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
Example #17
Source File: test_util.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def test_get_locales(self):
        # all systems should have at least a single locale
        assert len(tm.get_locales()) > 0 
Example #18
Source File: test_util.py    From vnpy_crypto with MIT License 5 votes vote down vote up
def setup_class(cls):
        cls.locales = tm.get_locales()
        cls.current_locale = locale.getlocale()

        if not cls.locales:
            pytest.skip("No locales found")