From 6d275a1c8d40dd5de597f10f820c2032add0bdf4 Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Sat, 6 Jul 2013 12:16:33 +0200 Subject: [PATCH] move unit tests outside babel package --- .gitignore | 6 +++--- conftest.py | 2 +- {babel/tests => tests}/__init__.py | 0 .../messages/tests => tests/messages}/__init__.py | 0 .../tests => tests/messages}/data/mapping.cfg | 0 .../messages}/data/project/__init__.py | 0 .../tests => tests/messages}/data/project/file1.py | 0 .../tests => tests/messages}/data/project/file2.py | 0 .../data/project/i18n/de/LC_MESSAGES/messages.mo | Bin .../data/project/i18n/de/LC_MESSAGES/messages.po | 0 .../data/project/i18n/de_DE/LC_MESSAGES/messages.po | 0 .../messages}/data/project/i18n/messages.pot | 0 .../data/project/i18n/messages_non_fuzzy.pot | 0 .../data/project/i18n/ru_RU/LC_MESSAGES/messages.po | 0 .../messages}/data/project/ignored/a_test_file.txt | 0 .../messages}/data/project/ignored/an_example.txt | 0 .../project/ignored/this_wont_normally_be_here.py | 0 .../tests => tests/messages}/data/setup.cfg | 0 .../messages/tests => tests/messages}/data/setup.py | 0 .../tests => tests/messages}/test_catalog.py | 0 .../tests => tests/messages}/test_checkers.py | 0 .../tests => tests/messages}/test_extract.py | 0 .../tests => tests/messages}/test_frontend.py | 0 .../tests => tests/messages}/test_mofile.py | 0 .../tests => tests/messages}/test_plurals.py | 0 .../tests => tests/messages}/test_pofile.py | 0 {babel/tests => tests}/test_core.py | 0 {babel/tests => tests}/test_dates.py | 0 {babel/tests => tests}/test_localedata.py | 0 {babel/tests => tests}/test_numbers.py | 0 {babel/tests => tests}/test_plural.py | 0 {babel/tests => tests}/test_support.py | 0 {babel/tests => tests}/test_util.py | 0 tox.ini | 2 +- 34 files changed, 5 insertions(+), 5 deletions(-) rename {babel/tests => tests}/__init__.py (100%) rename {babel/messages/tests => tests/messages}/__init__.py (100%) rename {babel/messages/tests => tests/messages}/data/mapping.cfg (100%) rename {babel/messages/tests => tests/messages}/data/project/__init__.py (100%) rename {babel/messages/tests => tests/messages}/data/project/file1.py (100%) rename {babel/messages/tests => tests/messages}/data/project/file2.py (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/de/LC_MESSAGES/messages.mo (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/de/LC_MESSAGES/messages.po (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/de_DE/LC_MESSAGES/messages.po (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/messages.pot (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/messages_non_fuzzy.pot (100%) rename {babel/messages/tests => tests/messages}/data/project/i18n/ru_RU/LC_MESSAGES/messages.po (100%) rename {babel/messages/tests => tests/messages}/data/project/ignored/a_test_file.txt (100%) rename {babel/messages/tests => tests/messages}/data/project/ignored/an_example.txt (100%) rename {babel/messages/tests => tests/messages}/data/project/ignored/this_wont_normally_be_here.py (100%) rename {babel/messages/tests => tests/messages}/data/setup.cfg (100%) rename {babel/messages/tests => tests/messages}/data/setup.py (100%) rename {babel/messages/tests => tests/messages}/test_catalog.py (100%) rename {babel/messages/tests => tests/messages}/test_checkers.py (100%) rename {babel/messages/tests => tests/messages}/test_extract.py (100%) rename {babel/messages/tests => tests/messages}/test_frontend.py (100%) rename {babel/messages/tests => tests/messages}/test_mofile.py (100%) rename {babel/messages/tests => tests/messages}/test_plurals.py (100%) rename {babel/messages/tests => tests/messages}/test_pofile.py (100%) rename {babel/tests => tests}/test_core.py (100%) rename {babel/tests => tests}/test_dates.py (100%) rename {babel/tests => tests}/test_localedata.py (100%) rename {babel/tests => tests}/test_numbers.py (100%) rename {babel/tests => tests}/test_plural.py (100%) rename {babel/tests => tests}/test_support.py (100%) rename {babel/tests => tests}/test_util.py (100%) 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 [] -- 2.47.2