From 6773c6c74b4a6bc36fd0ae0dd91c811b0548935e Mon Sep 17 00:00:00 2001 From: LeoHsiao Date: Wed, 12 Aug 2020 20:24:39 +0800 Subject: [PATCH] Rename bash_test to bash_tests --- tests/README.md | 2 +- tests/{bash_test => bash_tests}/__init__.py | 0 tests/{bash_test/test_sample.py => bash_tests/testcases.py} | 2 +- tests/{bash_test => bash_tests}/utils.py | 0 tests/system_tests.py | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename tests/{bash_test => bash_tests}/__init__.py (100%) rename tests/{bash_test/test_sample.py => bash_tests/testcases.py} (97%) rename tests/{bash_test => bash_tests}/utils.py (100%) diff --git a/tests/README.md b/tests/README.md index 089331ce..ea699d13 100644 --- a/tests/README.md +++ b/tests/README.md @@ -789,5 +789,5 @@ class AnInformativeName(metaclass=system_tests.CaseMeta): ## Bash test cases -- Previously, Exiv2 had some bash test scripts, which were saved as the file `EXIV2_DIR/test/*.sh`. We're going to rewrite them as Python test scripts and save them to the directory `EXIV2_DIR/tests/bash_test`. +- Previously, Exiv2 had some bash test scripts, which were saved as the file `EXIV2_DIR/test/*.sh`. We're going to rewrite them as Python test scripts and save them to the directory `EXIV2_DIR/tests/bash_tests`. - These Python test scripts are based on [unittest](https://docs.python.org/3/library/unittest.html) and written in a common format, which is different from the format described in [Writing new tests](#writing-new-tests), but can be executed compatibly by `python3 runner.py`. diff --git a/tests/bash_test/__init__.py b/tests/bash_tests/__init__.py similarity index 100% rename from tests/bash_test/__init__.py rename to tests/bash_tests/__init__.py diff --git a/tests/bash_test/test_sample.py b/tests/bash_tests/testcases.py similarity index 97% rename from tests/bash_test/test_sample.py rename to tests/bash_tests/testcases.py index c69754ee..97bbc039 100644 --- a/tests/bash_test/test_sample.py +++ b/tests/bash_tests/testcases.py @@ -2,7 +2,7 @@ import unittest from system_tests import utils -class TestSample(unittest.TestCase): +class TestCases(unittest.TestCase): def test_geotag(self): testname = 'geotag-test' jpg = 'FurnaceCreekInn.jpg' diff --git a/tests/bash_test/utils.py b/tests/bash_tests/utils.py similarity index 100% rename from tests/bash_test/utils.py rename to tests/bash_tests/utils.py diff --git a/tests/system_tests.py b/tests/system_tests.py index d37af969..a1f11bb3 100644 --- a/tests/system_tests.py +++ b/tests/system_tests.py @@ -12,7 +12,7 @@ import string import unittest -from bash_test import utils +from bash_tests import utils if sys.platform in [ 'win32', 'msys', 'cygwin' ]: