From 067395d5c56ef9026c442e691b6458ac196e3cf9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 22 Dec 2019 13:32:34 +0100 Subject: [PATCH] Move tests outside of library. --- .circleci/config.yml | 14 +++++++------- Makefile | 4 ++-- README.md | 6 +++--- docs/source/installation.md | 6 +++--- {transformers/tests => tests}/__init__.py | 0 .../tests => tests}/configuration_common_test.py | 0 {transformers/tests => tests}/fixtures/empty.txt | 0 {transformers/tests => tests}/fixtures/input.txt | 0 .../tests => tests}/fixtures/sample_text.txt | 0 .../tests => tests}/fixtures/spiece.model | Bin .../fixtures/test_sentencepiece.model | Bin {transformers/tests => tests}/hf_api_test.py | 0 {transformers/tests => tests}/model_card_test.py | 0 .../tests => tests}/modeling_albert_test.py | 0 .../tests => tests}/modeling_auto_test.py | 0 .../tests => tests}/modeling_bert_test.py | 0 .../tests => tests}/modeling_common_test.py | 0 .../tests => tests}/modeling_ctrl_test.py | 0 .../tests => tests}/modeling_distilbert_test.py | 0 .../modeling_encoder_decoder_test.py | 0 .../tests => tests}/modeling_gpt2_test.py | 0 .../tests => tests}/modeling_openai_test.py | 0 .../tests => tests}/modeling_roberta_test.py | 0 {transformers/tests => tests}/modeling_t5_test.py | 0 .../tests => tests}/modeling_tf_albert_test.py | 0 .../tests => tests}/modeling_tf_auto_test.py | 0 .../tests => tests}/modeling_tf_bert_test.py | 0 .../tests => tests}/modeling_tf_common_test.py | 0 .../tests => tests}/modeling_tf_ctrl_test.py | 0 .../modeling_tf_distilbert_test.py | 0 .../tests => tests}/modeling_tf_gpt2_test.py | 0 .../modeling_tf_openai_gpt_test.py | 0 .../tests => tests}/modeling_tf_roberta_test.py | 0 .../tests => tests}/modeling_tf_t5_test.py | 0 .../modeling_tf_transfo_xl_test.py | 0 .../tests => tests}/modeling_tf_xlm_test.py | 0 .../tests => tests}/modeling_tf_xlnet_test.py | 0 .../tests => tests}/modeling_transfo_xl_test.py | 0 .../tests => tests}/modeling_xlm_test.py | 0 .../tests => tests}/modeling_xlnet_test.py | 0 .../tests => tests}/optimization_test.py | 0 .../tests => tests}/optimization_tf_test.py | 0 {transformers/tests => tests}/pipelines_test.py | 0 .../tests => tests}/tokenization_albert_test.py | 0 .../tests => tests}/tokenization_auto_test.py | 0 .../tokenization_bert_japanese_test.py | 0 .../tests => tests}/tokenization_bert_test.py | 0 .../tests => tests}/tokenization_ctrl_test.py | 0 .../tokenization_distilbert_test.py | 0 .../tests => tests}/tokenization_gpt2_test.py | 0 .../tests => tests}/tokenization_openai_test.py | 0 .../tests => tests}/tokenization_roberta_test.py | 0 .../tests => tests}/tokenization_t5_test.py | 0 .../tests => tests}/tokenization_tests_commons.py | 0 .../tokenization_transfo_xl_test.py | 0 .../tests => tests}/tokenization_utils_test.py | 0 .../tests => tests}/tokenization_xlm_test.py | 0 .../tests => tests}/tokenization_xlnet_test.py | 0 {transformers/tests => tests}/utils.py | 0 59 files changed, 15 insertions(+), 15 deletions(-) rename {transformers/tests => tests}/__init__.py (100%) rename {transformers/tests => tests}/configuration_common_test.py (100%) rename {transformers/tests => tests}/fixtures/empty.txt (100%) rename {transformers/tests => tests}/fixtures/input.txt (100%) rename {transformers/tests => tests}/fixtures/sample_text.txt (100%) rename {transformers/tests => tests}/fixtures/spiece.model (100%) rename {transformers/tests => tests}/fixtures/test_sentencepiece.model (100%) rename {transformers/tests => tests}/hf_api_test.py (100%) rename {transformers/tests => tests}/model_card_test.py (100%) rename {transformers/tests => tests}/modeling_albert_test.py (100%) rename {transformers/tests => tests}/modeling_auto_test.py (100%) rename {transformers/tests => tests}/modeling_bert_test.py (100%) rename {transformers/tests => tests}/modeling_common_test.py (100%) rename {transformers/tests => tests}/modeling_ctrl_test.py (100%) rename {transformers/tests => tests}/modeling_distilbert_test.py (100%) rename {transformers/tests => tests}/modeling_encoder_decoder_test.py (100%) rename {transformers/tests => tests}/modeling_gpt2_test.py (100%) rename {transformers/tests => tests}/modeling_openai_test.py (100%) rename {transformers/tests => tests}/modeling_roberta_test.py (100%) rename {transformers/tests => tests}/modeling_t5_test.py (100%) rename {transformers/tests => tests}/modeling_tf_albert_test.py (100%) rename {transformers/tests => tests}/modeling_tf_auto_test.py (100%) rename {transformers/tests => tests}/modeling_tf_bert_test.py (100%) rename {transformers/tests => tests}/modeling_tf_common_test.py (100%) rename {transformers/tests => tests}/modeling_tf_ctrl_test.py (100%) rename {transformers/tests => tests}/modeling_tf_distilbert_test.py (100%) rename {transformers/tests => tests}/modeling_tf_gpt2_test.py (100%) rename {transformers/tests => tests}/modeling_tf_openai_gpt_test.py (100%) rename {transformers/tests => tests}/modeling_tf_roberta_test.py (100%) rename {transformers/tests => tests}/modeling_tf_t5_test.py (100%) rename {transformers/tests => tests}/modeling_tf_transfo_xl_test.py (100%) rename {transformers/tests => tests}/modeling_tf_xlm_test.py (100%) rename {transformers/tests => tests}/modeling_tf_xlnet_test.py (100%) rename {transformers/tests => tests}/modeling_transfo_xl_test.py (100%) rename {transformers/tests => tests}/modeling_xlm_test.py (100%) rename {transformers/tests => tests}/modeling_xlnet_test.py (100%) rename {transformers/tests => tests}/optimization_test.py (100%) rename {transformers/tests => tests}/optimization_tf_test.py (100%) rename {transformers/tests => tests}/pipelines_test.py (100%) rename {transformers/tests => tests}/tokenization_albert_test.py (100%) rename {transformers/tests => tests}/tokenization_auto_test.py (100%) rename {transformers/tests => tests}/tokenization_bert_japanese_test.py (100%) rename {transformers/tests => tests}/tokenization_bert_test.py (100%) rename {transformers/tests => tests}/tokenization_ctrl_test.py (100%) rename {transformers/tests => tests}/tokenization_distilbert_test.py (100%) rename {transformers/tests => tests}/tokenization_gpt2_test.py (100%) rename {transformers/tests => tests}/tokenization_openai_test.py (100%) rename {transformers/tests => tests}/tokenization_roberta_test.py (100%) rename {transformers/tests => tests}/tokenization_t5_test.py (100%) rename {transformers/tests => tests}/tokenization_tests_commons.py (100%) rename {transformers/tests => tests}/tokenization_transfo_xl_test.py (100%) rename {transformers/tests => tests}/tokenization_utils_test.py (100%) rename {transformers/tests => tests}/tokenization_xlm_test.py (100%) rename {transformers/tests => tests}/tokenization_xlnet_test.py (100%) rename {transformers/tests => tests}/utils.py (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index e46529556d..d32faae8e9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: - run: sudo pip install --progress-bar off . - run: sudo pip install pytest codecov pytest-cov pytest-xdist - run: sudo pip install tensorboardX scikit-learn - - run: python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov + - run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov - run: codecov run_tests_py3_torch: working_directory: ~/transformers @@ -31,7 +31,7 @@ jobs: - run: sudo pip install --progress-bar off . - run: sudo pip install pytest codecov pytest-cov pytest-xdist - run: sudo pip install tensorboardX scikit-learn - - run: python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov + - run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov - run: codecov run_tests_py3_tf: working_directory: ~/transformers @@ -47,7 +47,7 @@ jobs: - run: sudo pip install --progress-bar off . - run: sudo pip install pytest codecov pytest-cov pytest-xdist - run: sudo pip install tensorboardX scikit-learn - - run: python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov + - run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov - run: codecov run_tests_py3_custom_tokenizers: working_directory: ~/transformers @@ -58,7 +58,7 @@ jobs: - run: sudo pip install --progress-bar off . - run: sudo pip install pytest pytest-xdist - run: sudo pip install mecab-python3 - - run: RUN_CUSTOM_TOKENIZERS=1 python -m pytest -sv ./transformers/tests/tokenization_bert_japanese_test.py + - run: RUN_CUSTOM_TOKENIZERS=1 python -m pytest -sv ./tests/tokenization_bert_japanese_test.py run_examples_py3_torch: working_directory: ~/transformers docker: @@ -97,9 +97,9 @@ jobs: - run: sudo pip install --editable . - run: sudo pip install torch tensorflow - run: sudo pip install black git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort flake8 - - run: black --check --line-length 119 examples templates transformers utils - - run: isort --check-only --recursive examples templates transformers utils - - run: flake8 examples templates transformers utils + - run: black --check --line-length 119 examples templates tests transformers utils + - run: isort --check-only --recursive examples templates tests transformers utils + - run: flake8 examples templates tests transformers utils check_repository_consistency: working_directory: ~/transformers docker: diff --git a/Makefile b/Makefile index 77aa439838..e393cdb88a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: style style: - black --line-length 119 examples templates transformers utils - isort --recursive examples templates transformers utils + black --line-length 119 examples templates tests transformers utils + isort --recursive examples templates tests transformers utils diff --git a/README.md b/README.md index 8574f22e46..fcfb6dc9b5 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ pip install [--editable] . ### Tests -A series of tests are included for the library and the example scripts. Library tests can be found in the [tests folder](https://github.com/huggingface/transformers/tree/master/transformers/tests) and examples tests in the [examples folder](https://github.com/huggingface/transformers/tree/master/examples). +A series of tests are included for the library and the example scripts. Library tests can be found in the [tests folder](https://github.com/huggingface/transformers/tree/master/tests) and examples tests in the [examples folder](https://github.com/huggingface/transformers/tree/master/examples). These tests can be run using `unittest` or `pytest` (install pytest if needed with `pip install pytest`). @@ -110,14 +110,14 @@ Depending on which framework is installed (TensorFlow 2.0 and/or PyTorch), the i You can run the tests from the root of the cloned repository with the commands: ```bash -python -m unittest discover -s transformers/tests -p "*test.py" -t . +python -m unittest discover -s tests -p "*test.py" -t . python -m unittest discover -s examples -p "*test.py" -t examples ``` or ```bash -python -m pytest -sv ./transformers/tests/ +python -m pytest -sv ./tests/ python -m pytest -sv ./examples/ ``` diff --git a/docs/source/installation.md b/docs/source/installation.md index 6263f7604d..5c901d122e 100644 --- a/docs/source/installation.md +++ b/docs/source/installation.md @@ -22,21 +22,21 @@ pip install [--editable] . ## Tests -An extensive test suite is included to test the library behavior and several examples. Library tests can be found in the [tests folder](https://github.com/huggingface/transformers/tree/master/transformers/tests) and examples tests in the [examples folder](https://github.com/huggingface/transformers/tree/master/examples). +An extensive test suite is included to test the library behavior and several examples. Library tests can be found in the [tests folder](https://github.com/huggingface/transformers/tree/master/tests) and examples tests in the [examples folder](https://github.com/huggingface/transformers/tree/master/examples). Tests can be run using `unittest` or `pytest` (install pytest if needed with `pip install pytest`). Run all the tests from the root of the cloned repository with the commands: ```bash -python -m unittest discover -s transformers/tests -p "*test.py" -t . +python -m unittest discover -s tests -p "*test.py" -t . python -m unittest discover -s examples -p "*test.py" -t examples ``` or ``` bash -python -m pytest -sv ./transformers/tests/ +python -m pytest -sv ./tests/ python -m pytest -sv ./examples/ ``` diff --git a/transformers/tests/__init__.py b/tests/__init__.py similarity index 100% rename from transformers/tests/__init__.py rename to tests/__init__.py diff --git a/transformers/tests/configuration_common_test.py b/tests/configuration_common_test.py similarity index 100% rename from transformers/tests/configuration_common_test.py rename to tests/configuration_common_test.py diff --git a/transformers/tests/fixtures/empty.txt b/tests/fixtures/empty.txt similarity index 100% rename from transformers/tests/fixtures/empty.txt rename to tests/fixtures/empty.txt diff --git a/transformers/tests/fixtures/input.txt b/tests/fixtures/input.txt similarity index 100% rename from transformers/tests/fixtures/input.txt rename to tests/fixtures/input.txt diff --git a/transformers/tests/fixtures/sample_text.txt b/tests/fixtures/sample_text.txt similarity index 100% rename from transformers/tests/fixtures/sample_text.txt rename to tests/fixtures/sample_text.txt diff --git a/transformers/tests/fixtures/spiece.model b/tests/fixtures/spiece.model similarity index 100% rename from transformers/tests/fixtures/spiece.model rename to tests/fixtures/spiece.model diff --git a/transformers/tests/fixtures/test_sentencepiece.model b/tests/fixtures/test_sentencepiece.model similarity index 100% rename from transformers/tests/fixtures/test_sentencepiece.model rename to tests/fixtures/test_sentencepiece.model diff --git a/transformers/tests/hf_api_test.py b/tests/hf_api_test.py similarity index 100% rename from transformers/tests/hf_api_test.py rename to tests/hf_api_test.py diff --git a/transformers/tests/model_card_test.py b/tests/model_card_test.py similarity index 100% rename from transformers/tests/model_card_test.py rename to tests/model_card_test.py diff --git a/transformers/tests/modeling_albert_test.py b/tests/modeling_albert_test.py similarity index 100% rename from transformers/tests/modeling_albert_test.py rename to tests/modeling_albert_test.py diff --git a/transformers/tests/modeling_auto_test.py b/tests/modeling_auto_test.py similarity index 100% rename from transformers/tests/modeling_auto_test.py rename to tests/modeling_auto_test.py diff --git a/transformers/tests/modeling_bert_test.py b/tests/modeling_bert_test.py similarity index 100% rename from transformers/tests/modeling_bert_test.py rename to tests/modeling_bert_test.py diff --git a/transformers/tests/modeling_common_test.py b/tests/modeling_common_test.py similarity index 100% rename from transformers/tests/modeling_common_test.py rename to tests/modeling_common_test.py diff --git a/transformers/tests/modeling_ctrl_test.py b/tests/modeling_ctrl_test.py similarity index 100% rename from transformers/tests/modeling_ctrl_test.py rename to tests/modeling_ctrl_test.py diff --git a/transformers/tests/modeling_distilbert_test.py b/tests/modeling_distilbert_test.py similarity index 100% rename from transformers/tests/modeling_distilbert_test.py rename to tests/modeling_distilbert_test.py diff --git a/transformers/tests/modeling_encoder_decoder_test.py b/tests/modeling_encoder_decoder_test.py similarity index 100% rename from transformers/tests/modeling_encoder_decoder_test.py rename to tests/modeling_encoder_decoder_test.py diff --git a/transformers/tests/modeling_gpt2_test.py b/tests/modeling_gpt2_test.py similarity index 100% rename from transformers/tests/modeling_gpt2_test.py rename to tests/modeling_gpt2_test.py diff --git a/transformers/tests/modeling_openai_test.py b/tests/modeling_openai_test.py similarity index 100% rename from transformers/tests/modeling_openai_test.py rename to tests/modeling_openai_test.py diff --git a/transformers/tests/modeling_roberta_test.py b/tests/modeling_roberta_test.py similarity index 100% rename from transformers/tests/modeling_roberta_test.py rename to tests/modeling_roberta_test.py diff --git a/transformers/tests/modeling_t5_test.py b/tests/modeling_t5_test.py similarity index 100% rename from transformers/tests/modeling_t5_test.py rename to tests/modeling_t5_test.py diff --git a/transformers/tests/modeling_tf_albert_test.py b/tests/modeling_tf_albert_test.py similarity index 100% rename from transformers/tests/modeling_tf_albert_test.py rename to tests/modeling_tf_albert_test.py diff --git a/transformers/tests/modeling_tf_auto_test.py b/tests/modeling_tf_auto_test.py similarity index 100% rename from transformers/tests/modeling_tf_auto_test.py rename to tests/modeling_tf_auto_test.py diff --git a/transformers/tests/modeling_tf_bert_test.py b/tests/modeling_tf_bert_test.py similarity index 100% rename from transformers/tests/modeling_tf_bert_test.py rename to tests/modeling_tf_bert_test.py diff --git a/transformers/tests/modeling_tf_common_test.py b/tests/modeling_tf_common_test.py similarity index 100% rename from transformers/tests/modeling_tf_common_test.py rename to tests/modeling_tf_common_test.py diff --git a/transformers/tests/modeling_tf_ctrl_test.py b/tests/modeling_tf_ctrl_test.py similarity index 100% rename from transformers/tests/modeling_tf_ctrl_test.py rename to tests/modeling_tf_ctrl_test.py diff --git a/transformers/tests/modeling_tf_distilbert_test.py b/tests/modeling_tf_distilbert_test.py similarity index 100% rename from transformers/tests/modeling_tf_distilbert_test.py rename to tests/modeling_tf_distilbert_test.py diff --git a/transformers/tests/modeling_tf_gpt2_test.py b/tests/modeling_tf_gpt2_test.py similarity index 100% rename from transformers/tests/modeling_tf_gpt2_test.py rename to tests/modeling_tf_gpt2_test.py diff --git a/transformers/tests/modeling_tf_openai_gpt_test.py b/tests/modeling_tf_openai_gpt_test.py similarity index 100% rename from transformers/tests/modeling_tf_openai_gpt_test.py rename to tests/modeling_tf_openai_gpt_test.py diff --git a/transformers/tests/modeling_tf_roberta_test.py b/tests/modeling_tf_roberta_test.py similarity index 100% rename from transformers/tests/modeling_tf_roberta_test.py rename to tests/modeling_tf_roberta_test.py diff --git a/transformers/tests/modeling_tf_t5_test.py b/tests/modeling_tf_t5_test.py similarity index 100% rename from transformers/tests/modeling_tf_t5_test.py rename to tests/modeling_tf_t5_test.py diff --git a/transformers/tests/modeling_tf_transfo_xl_test.py b/tests/modeling_tf_transfo_xl_test.py similarity index 100% rename from transformers/tests/modeling_tf_transfo_xl_test.py rename to tests/modeling_tf_transfo_xl_test.py diff --git a/transformers/tests/modeling_tf_xlm_test.py b/tests/modeling_tf_xlm_test.py similarity index 100% rename from transformers/tests/modeling_tf_xlm_test.py rename to tests/modeling_tf_xlm_test.py diff --git a/transformers/tests/modeling_tf_xlnet_test.py b/tests/modeling_tf_xlnet_test.py similarity index 100% rename from transformers/tests/modeling_tf_xlnet_test.py rename to tests/modeling_tf_xlnet_test.py diff --git a/transformers/tests/modeling_transfo_xl_test.py b/tests/modeling_transfo_xl_test.py similarity index 100% rename from transformers/tests/modeling_transfo_xl_test.py rename to tests/modeling_transfo_xl_test.py diff --git a/transformers/tests/modeling_xlm_test.py b/tests/modeling_xlm_test.py similarity index 100% rename from transformers/tests/modeling_xlm_test.py rename to tests/modeling_xlm_test.py diff --git a/transformers/tests/modeling_xlnet_test.py b/tests/modeling_xlnet_test.py similarity index 100% rename from transformers/tests/modeling_xlnet_test.py rename to tests/modeling_xlnet_test.py diff --git a/transformers/tests/optimization_test.py b/tests/optimization_test.py similarity index 100% rename from transformers/tests/optimization_test.py rename to tests/optimization_test.py diff --git a/transformers/tests/optimization_tf_test.py b/tests/optimization_tf_test.py similarity index 100% rename from transformers/tests/optimization_tf_test.py rename to tests/optimization_tf_test.py diff --git a/transformers/tests/pipelines_test.py b/tests/pipelines_test.py similarity index 100% rename from transformers/tests/pipelines_test.py rename to tests/pipelines_test.py diff --git a/transformers/tests/tokenization_albert_test.py b/tests/tokenization_albert_test.py similarity index 100% rename from transformers/tests/tokenization_albert_test.py rename to tests/tokenization_albert_test.py diff --git a/transformers/tests/tokenization_auto_test.py b/tests/tokenization_auto_test.py similarity index 100% rename from transformers/tests/tokenization_auto_test.py rename to tests/tokenization_auto_test.py diff --git a/transformers/tests/tokenization_bert_japanese_test.py b/tests/tokenization_bert_japanese_test.py similarity index 100% rename from transformers/tests/tokenization_bert_japanese_test.py rename to tests/tokenization_bert_japanese_test.py diff --git a/transformers/tests/tokenization_bert_test.py b/tests/tokenization_bert_test.py similarity index 100% rename from transformers/tests/tokenization_bert_test.py rename to tests/tokenization_bert_test.py diff --git a/transformers/tests/tokenization_ctrl_test.py b/tests/tokenization_ctrl_test.py similarity index 100% rename from transformers/tests/tokenization_ctrl_test.py rename to tests/tokenization_ctrl_test.py diff --git a/transformers/tests/tokenization_distilbert_test.py b/tests/tokenization_distilbert_test.py similarity index 100% rename from transformers/tests/tokenization_distilbert_test.py rename to tests/tokenization_distilbert_test.py diff --git a/transformers/tests/tokenization_gpt2_test.py b/tests/tokenization_gpt2_test.py similarity index 100% rename from transformers/tests/tokenization_gpt2_test.py rename to tests/tokenization_gpt2_test.py diff --git a/transformers/tests/tokenization_openai_test.py b/tests/tokenization_openai_test.py similarity index 100% rename from transformers/tests/tokenization_openai_test.py rename to tests/tokenization_openai_test.py diff --git a/transformers/tests/tokenization_roberta_test.py b/tests/tokenization_roberta_test.py similarity index 100% rename from transformers/tests/tokenization_roberta_test.py rename to tests/tokenization_roberta_test.py diff --git a/transformers/tests/tokenization_t5_test.py b/tests/tokenization_t5_test.py similarity index 100% rename from transformers/tests/tokenization_t5_test.py rename to tests/tokenization_t5_test.py diff --git a/transformers/tests/tokenization_tests_commons.py b/tests/tokenization_tests_commons.py similarity index 100% rename from transformers/tests/tokenization_tests_commons.py rename to tests/tokenization_tests_commons.py diff --git a/transformers/tests/tokenization_transfo_xl_test.py b/tests/tokenization_transfo_xl_test.py similarity index 100% rename from transformers/tests/tokenization_transfo_xl_test.py rename to tests/tokenization_transfo_xl_test.py diff --git a/transformers/tests/tokenization_utils_test.py b/tests/tokenization_utils_test.py similarity index 100% rename from transformers/tests/tokenization_utils_test.py rename to tests/tokenization_utils_test.py diff --git a/transformers/tests/tokenization_xlm_test.py b/tests/tokenization_xlm_test.py similarity index 100% rename from transformers/tests/tokenization_xlm_test.py rename to tests/tokenization_xlm_test.py diff --git a/transformers/tests/tokenization_xlnet_test.py b/tests/tokenization_xlnet_test.py similarity index 100% rename from transformers/tests/tokenization_xlnet_test.py rename to tests/tokenization_xlnet_test.py diff --git a/transformers/tests/utils.py b/tests/utils.py similarity index 100% rename from transformers/tests/utils.py rename to tests/utils.py