diff --git a/src/bob/io/base/test_utils.py b/src/bob/io/base/testing_utils.py similarity index 95% rename from src/bob/io/base/test_utils.py rename to src/bob/io/base/testing_utils.py index 1539ec6d38676537c4ebbdd68150eda7e60f7a83..240a9ad8986ee5303ba55981937b2e83a38bb530 100644 --- a/src/bob/io/base/test_utils.py +++ b/src/bob/io/base/testing_utils.py @@ -58,8 +58,8 @@ def temporary_filename(prefix="bobtest_", suffix=".hdf5"): .. code-block:: py - import bob.io.base.test_utils - temp = bob.io.base.test_utils.temporary_filename() + import bob.io.base.testing_utils + temp = bob.io.base.testing_utils.temporary_filename() try: # use the temp file ... @@ -96,9 +96,9 @@ def extension_available(extension): .. code-block:: py - import bob.io.base.test_utils + import bob.io.base.testing_utils - @bob.io.base.test_utils.extension_available('.ext') + @bob.io.base.testing_utils.extension_available('.ext') def my_test(): ... """ diff --git a/tests/test_image_support.py b/tests/test_image_support.py index 75a8a8ae92c71af89867d8209405bcf9bf8cf356..ad7ef82b44e57d69e727003e6d09cfe00be253eb 100644 --- a/tests/test_image_support.py +++ b/tests/test_image_support.py @@ -14,7 +14,7 @@ import numpy import pytest from bob.io.base import load, write -from bob.io.base.test_utils import datafile, temporary_filename +from bob.io.base.testing_utils import datafile, temporary_filename # These are some global parameters for the test. PNG_INDEXED_COLOR = datafile("img_indexed_color.png", __name__) diff --git a/tests/test_io.py b/tests/test_io.py index 9f579d579f8c5c7159ce85d03db2041b90ba1269..5977ea233d81d9f88275ffc9cbb0684c0cddb3e7 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -4,7 +4,7 @@ import numpy as np import pytest from bob.io.base import load, save, vstack_features -from bob.io.base.test_utils import temporary_filename +from bob.io.base.testing_utils import temporary_filename def test_io_vstack(): diff --git a/tests/test_utlilities.py b/tests/test_utlilities.py index d5f3da12e3441cb430eb97a213c17055c825aa97..b9c147743095f3623e1825b2f7c476dd5d7e85e6 100644 --- a/tests/test_utlilities.py +++ b/tests/test_utlilities.py @@ -4,7 +4,7 @@ import click from click.testing import CliRunner -from bob.io.base import test_utils +from bob.io.base import testing_utils @click.command("dummy") @@ -25,14 +25,14 @@ def dummy_command_raise(): def test_assert_dummy(): result = CliRunner().invoke(dummy_command_0) assert result.exit_code == 0 - test_utils.assert_click_runner_result(result) + testing_utils.assert_click_runner_result(result) result = CliRunner().invoke(dummy_command_1) assert result.exit_code == 1 - test_utils.assert_click_runner_result(result, exit_code=1) + testing_utils.assert_click_runner_result(result, exit_code=1) result = CliRunner().invoke(dummy_command_raise) assert result.exit_code == 1 - test_utils.assert_click_runner_result( + testing_utils.assert_click_runner_result( result, exit_code=1, exception_type=RuntimeError )