Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Internal
* Collect CLI arguments into a dataclass.
* Clean up generated files after test runs.
* Migrate toplevel tool configurations to `pyproject.toml`.
* Gather `pytest` files into a subdirectory, separated from `behave` tests.


1.66.0 (2026/03/21)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_config.py → test/pytests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
from test.utils import TEMPFILE_PREFIX

LOGIN_PATH_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "mylogin.cnf"))
LOGIN_PATH_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "../mylogin.cnf"))


def open_bmylogin_cnf(name):
Expand Down
2 changes: 1 addition & 1 deletion test/test_dbspecial.py → test/pytests/test_dbspecial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mycli.packages.completion_engine import suggest_type
from mycli.packages.special.dbcommands import list_tables
from mycli.packages.special.utils import format_uptime
from test.test_completion_engine import sorted_dicts
from test.pytests.test_completion_engine import sorted_dicts


def test_list_tables_verbose_preserves_field_results():
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions test/test_main.py → test/pytests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
from mycli.sqlexecute import ServerInfo, SQLExecute
from test.utils import DATABASE, HOST, PASSWORD, PORT, TEMPFILE_PREFIX, USER, dbtest, run

test_dir = os.path.abspath(os.path.dirname(__file__))
project_dir = os.path.dirname(test_dir)
default_config_file = os.path.join(project_dir, "test", "myclirc")
login_path_file = os.path.join(test_dir, "mylogin.cnf")
pytests_dir = os.path.abspath(os.path.dirname(__file__))
project_root_dir = os.path.abspath(os.path.join(pytests_dir, '..', '..'))
default_config_file = os.path.join(project_root_dir, 'test', 'myclirc')
login_path_file = os.path.join(project_root_dir, 'test', 'mylogin.cnf')

os.environ["MYSQL_TEST_LOGIN_FILE"] = login_path_file
CLI_ARGS = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions test/test_sqlexecute.py → test/pytests/test_sqlexecute.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,8 @@ def test_system_command_not_found(executor):
@dbtest
def test_system_command_output(executor):
eol = os.linesep
test_dir = os.path.abspath(os.path.dirname(__file__))
test_file_path = os.path.join(test_dir, "test.txt")
results = run(executor, f"system cat {test_file_path}")
assert_result_equal(results, preamble=f"mycli rocks!{eol}")
results = run(executor, "system echo mycli rocks")
assert_result_equal(results, preamble=f"mycli rocks{eol}")


@dbtest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from mycli.packages.sqlresult import SQLResult
from test.utils import HOST, PASSWORD, PORT, USER, dbtest

default_config_file = os.path.join(os.path.dirname(__file__), "myclirc")
default_config_file = os.path.join(os.path.dirname(__file__), "../myclirc")


@pytest.fixture
Expand Down
1 change: 0 additions & 1 deletion test/test.txt

This file was deleted.

38 changes: 0 additions & 38 deletions test/test_plan.wiki

This file was deleted.

Loading