Skip to content

Commit ea942f9

Browse files
committed
test: move unit/ to test/
This virtually reverts commit 436218d ('move unit tests to unit'), that was made in the scope of #106. Despite the fact that testing of the connector uses `unittest` framework, it is functional (and integration) testing by its nature: most of the test cases verify that public API of the connector properly works with tarantool. In seems meaningful to locate such kind of test cases in the `test/` directory, not `unit/`, disregarding of used framework. Follows up #106.
1 parent dccf18f commit ea942f9

18 files changed

+10
-10
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ On Linux:
9797
On Windows:
9898

9999
* Setup a Linux machine with installed tarantool (called ``remote`` later).
100-
* (on ``remote``) Copy ``unit/suites/lib/tarantool_python_ci.lua`` to
100+
* (on ``remote``) Copy ``test/suites/lib/tarantool_python_ci.lua`` to
101101
``/etc/tarantool/instances.available``.
102102
* (on ``remote``) Run ``tarantoolctl start tarantool_python_ci``.
103103
* Set the following environment variables:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Test runner
4040
# python setup.py test
4141
try:
42-
from unit.setup_command import test
42+
from test.setup_command import test
4343
cmdclass["test"] = test
4444
except ImportError:
4545
pass
File renamed without changes.

unit/setup_command.py renamed to test/setup_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class test(setuptools.Command):
1212
user_options = []
13-
description = 'Run unit tests'
13+
description = 'Run tests'
1414

1515
def initialize_options(self):
1616
pass
@@ -23,7 +23,7 @@ def run(self):
2323
Find all tests in test/tarantool/ and run them
2424
'''
2525

26-
tests = unittest.defaultTestLoader.discover('unit', pattern='suites')
26+
tests = unittest.defaultTestLoader.discover('test', pattern='suites')
2727
test_runner = unittest.TextTestRunner(verbosity=2)
2828
result = test_runner.run(tests)
2929
if not result.wasSuccessful():
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)