當前位置: 首頁>>代碼示例>>Python>>正文


Python testing.get_locales方法代碼示例

本文整理匯總了Python中pandas.util.testing.get_locales方法的典型用法代碼示例。如果您正苦於以下問題:Python testing.get_locales方法的具體用法?Python testing.get_locales怎麽用?Python testing.get_locales使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pandas.util.testing的用法示例。


在下文中一共展示了testing.get_locales方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_get_locales_prefix

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
def test_get_locales_prefix():
    first_locale = _all_locales[0]
    assert len(tm.get_locales(prefix=first_locale[:2])) > 0 
開發者ID:Frank-qlu,項目名稱:recruit,代碼行數:5,代碼來源:test_locale.py

示例2: setup_class

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
def setup_class(cls):
        cls.locales = tm.get_locales()
        cls.current_locale = locale.getlocale()

        if not cls.locales:
            pytest.skip("No locales found") 
開發者ID:birforce,項目名稱:vnpy_crypto,代碼行數:8,代碼來源:test_util.py

示例3: test_get_locales

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
def test_get_locales(self):
        # all systems should have at least a single locale
        assert len(tm.get_locales()) > 0 
開發者ID:birforce,項目名稱:vnpy_crypto,代碼行數:5,代碼來源:test_util.py

示例4: test_get_locales_prefix

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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 
開發者ID:birforce,項目名稱:vnpy_crypto,代碼行數:8,代碼來源:test_util.py

示例5: test_locale

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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 
開發者ID:birforce,項目名稱:vnpy_crypto,代碼行數:10,代碼來源:test_testing.py

示例6: setUpClass

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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") 
開發者ID:ktraunmueller,項目名稱:Computable,代碼行數:11,代碼來源:test_util.py

示例7: test_get_locales_prefix

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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 
開發者ID:ktraunmueller,項目名稱:Computable,代碼行數:8,代碼來源:test_util.py

示例8: setUpClass

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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") 
開發者ID:ktraunmueller,項目名稱:Computable,代碼行數:7,代碼來源:test_data.py

示例9: setup_class

# 需要導入模塊: from pandas.util import testing [as 別名]
# 或者: from pandas.util.testing import get_locales [as 別名]
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() 
開發者ID:securityclippy,項目名稱:elasticintel,代碼行數:10,代碼來源:test_util.py


注:本文中的pandas.util.testing.get_locales方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。