From: Alex Morega Date: Sat, 6 Jul 2013 10:16:33 +0000 (+0200) Subject: move unit tests outside babel package X-Git-Tag: 1.0~110^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d275a1c8d40dd5de597f10f820c2032add0bdf4;p=thirdparty%2Fbabel.git move unit tests outside babel package --- diff --git a/.gitignore b/.gitignore index c1374bb7..d7bbe43f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,6 @@ dist .tox babel/global.dat babel/localedata/*.dat -babel/messages/tests/data/project/i18n/long_messages.pot -babel/messages/tests/data/project/i18n/temp.pot -babel/messages/tests/data/project/i18n/en_US +tests/messages/data/project/i18n/long_messages.pot +tests/messages/data/project/i18n/temp.pot +tests/messages/data/project/i18n/en_US diff --git a/conftest.py b/conftest.py index 328728a7..e79c1522 100644 --- a/conftest.py +++ b/conftest.py @@ -1 +1 @@ -collect_ignore = ['babel/messages/tests/data'] +collect_ignore = ['tests/messages/data'] diff --git a/babel/tests/__init__.py b/tests/__init__.py similarity index 100% rename from babel/tests/__init__.py rename to tests/__init__.py diff --git a/babel/messages/tests/__init__.py b/tests/messages/__init__.py similarity index 100% rename from babel/messages/tests/__init__.py rename to tests/messages/__init__.py diff --git a/babel/messages/tests/data/mapping.cfg b/tests/messages/data/mapping.cfg similarity index 100% rename from babel/messages/tests/data/mapping.cfg rename to tests/messages/data/mapping.cfg diff --git a/babel/messages/tests/data/project/__init__.py b/tests/messages/data/project/__init__.py similarity index 100% rename from babel/messages/tests/data/project/__init__.py rename to tests/messages/data/project/__init__.py diff --git a/babel/messages/tests/data/project/file1.py b/tests/messages/data/project/file1.py similarity index 100% rename from babel/messages/tests/data/project/file1.py rename to tests/messages/data/project/file1.py diff --git a/babel/messages/tests/data/project/file2.py b/tests/messages/data/project/file2.py similarity index 100% rename from babel/messages/tests/data/project/file2.py rename to tests/messages/data/project/file2.py diff --git a/babel/messages/tests/data/project/i18n/de/LC_MESSAGES/messages.mo b/tests/messages/data/project/i18n/de/LC_MESSAGES/messages.mo similarity index 100% rename from babel/messages/tests/data/project/i18n/de/LC_MESSAGES/messages.mo rename to tests/messages/data/project/i18n/de/LC_MESSAGES/messages.mo diff --git a/babel/messages/tests/data/project/i18n/de/LC_MESSAGES/messages.po b/tests/messages/data/project/i18n/de/LC_MESSAGES/messages.po similarity index 100% rename from babel/messages/tests/data/project/i18n/de/LC_MESSAGES/messages.po rename to tests/messages/data/project/i18n/de/LC_MESSAGES/messages.po diff --git a/babel/messages/tests/data/project/i18n/de_DE/LC_MESSAGES/messages.po b/tests/messages/data/project/i18n/de_DE/LC_MESSAGES/messages.po similarity index 100% rename from babel/messages/tests/data/project/i18n/de_DE/LC_MESSAGES/messages.po rename to tests/messages/data/project/i18n/de_DE/LC_MESSAGES/messages.po diff --git a/babel/messages/tests/data/project/i18n/messages.pot b/tests/messages/data/project/i18n/messages.pot similarity index 100% rename from babel/messages/tests/data/project/i18n/messages.pot rename to tests/messages/data/project/i18n/messages.pot diff --git a/babel/messages/tests/data/project/i18n/messages_non_fuzzy.pot b/tests/messages/data/project/i18n/messages_non_fuzzy.pot similarity index 100% rename from babel/messages/tests/data/project/i18n/messages_non_fuzzy.pot rename to tests/messages/data/project/i18n/messages_non_fuzzy.pot diff --git a/babel/messages/tests/data/project/i18n/ru_RU/LC_MESSAGES/messages.po b/tests/messages/data/project/i18n/ru_RU/LC_MESSAGES/messages.po similarity index 100% rename from babel/messages/tests/data/project/i18n/ru_RU/LC_MESSAGES/messages.po rename to tests/messages/data/project/i18n/ru_RU/LC_MESSAGES/messages.po diff --git a/babel/messages/tests/data/project/ignored/a_test_file.txt b/tests/messages/data/project/ignored/a_test_file.txt similarity index 100% rename from babel/messages/tests/data/project/ignored/a_test_file.txt rename to tests/messages/data/project/ignored/a_test_file.txt diff --git a/babel/messages/tests/data/project/ignored/an_example.txt b/tests/messages/data/project/ignored/an_example.txt similarity index 100% rename from babel/messages/tests/data/project/ignored/an_example.txt rename to tests/messages/data/project/ignored/an_example.txt diff --git a/babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py b/tests/messages/data/project/ignored/this_wont_normally_be_here.py similarity index 100% rename from babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py rename to tests/messages/data/project/ignored/this_wont_normally_be_here.py diff --git a/babel/messages/tests/data/setup.cfg b/tests/messages/data/setup.cfg similarity index 100% rename from babel/messages/tests/data/setup.cfg rename to tests/messages/data/setup.cfg diff --git a/babel/messages/tests/data/setup.py b/tests/messages/data/setup.py similarity index 100% rename from babel/messages/tests/data/setup.py rename to tests/messages/data/setup.py diff --git a/babel/messages/tests/test_catalog.py b/tests/messages/test_catalog.py similarity index 100% rename from babel/messages/tests/test_catalog.py rename to tests/messages/test_catalog.py diff --git a/babel/messages/tests/test_checkers.py b/tests/messages/test_checkers.py similarity index 100% rename from babel/messages/tests/test_checkers.py rename to tests/messages/test_checkers.py diff --git a/babel/messages/tests/test_extract.py b/tests/messages/test_extract.py similarity index 100% rename from babel/messages/tests/test_extract.py rename to tests/messages/test_extract.py diff --git a/babel/messages/tests/test_frontend.py b/tests/messages/test_frontend.py similarity index 100% rename from babel/messages/tests/test_frontend.py rename to tests/messages/test_frontend.py diff --git a/babel/messages/tests/test_mofile.py b/tests/messages/test_mofile.py similarity index 100% rename from babel/messages/tests/test_mofile.py rename to tests/messages/test_mofile.py diff --git a/babel/messages/tests/test_plurals.py b/tests/messages/test_plurals.py similarity index 100% rename from babel/messages/tests/test_plurals.py rename to tests/messages/test_plurals.py diff --git a/babel/messages/tests/test_pofile.py b/tests/messages/test_pofile.py similarity index 100% rename from babel/messages/tests/test_pofile.py rename to tests/messages/test_pofile.py diff --git a/babel/tests/test_core.py b/tests/test_core.py similarity index 100% rename from babel/tests/test_core.py rename to tests/test_core.py diff --git a/babel/tests/test_dates.py b/tests/test_dates.py similarity index 100% rename from babel/tests/test_dates.py rename to tests/test_dates.py diff --git a/babel/tests/test_localedata.py b/tests/test_localedata.py similarity index 100% rename from babel/tests/test_localedata.py rename to tests/test_localedata.py diff --git a/babel/tests/test_numbers.py b/tests/test_numbers.py similarity index 100% rename from babel/tests/test_numbers.py rename to tests/test_numbers.py diff --git a/babel/tests/test_plural.py b/tests/test_plural.py similarity index 100% rename from babel/tests/test_plural.py rename to tests/test_plural.py diff --git a/babel/tests/test_support.py b/tests/test_support.py similarity index 100% rename from babel/tests/test_support.py rename to tests/test_support.py diff --git a/babel/tests/test_util.py b/tests/test_util.py similarity index 100% rename from babel/tests/test_util.py rename to tests/test_util.py diff --git a/tox.ini b/tox.ini index 0f1a9db6..a787b8e7 100644 --- a/tox.ini +++ b/tox.ini @@ -5,4 +5,4 @@ envlist = py26, py27, pypy, py33 deps = pytz pytest -commands = py.test babel [] +commands = py.test babel tests []