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
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include LICENSE.txt *.md *.rst screenshots/*
include LICENSE.txt *.md *.rst doc/screenshots/*
recursive-include test *.cnf
recursive-include test *.feature
recursive-include test *.py
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A command line client for MySQL that can do auto-completion and syntax highlight
Homepage: [https://mycli.net](https://mycli.net)
Documentation: [https://mycli.net/docs](https://mycli.net/docs)

![Completion](screenshots/tables.png)
![CompletionGif](screenshots/main.gif)
![Completion](doc/screenshots/tables.png)
![CompletionGif](doc/screenshots/main.gif)

Postgres Equivalent: [https://pgcli.com](https://pgcli.com)

Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Internal
* Collect CLI arguments into a dataclass.
* Clean up generated files after test runs.
* Migrate toplevel tool configurations to `pyproject.toml`.
* Migrate other toplevel files to subdirectories.
* Gather `pytest` files into a subdirectory, separated from `behave` tests.
* Refactor: better naming for `prompt_toolkit` utilities.

Expand Down
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions test/pytests/test_smart_completion_public_schema_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,9 @@ def test_create_table_like_completion(completer, complete_event):


def test_source_eager_completion(completer, complete_event):
text = "source sc"
text = "source do"
position = len(text)
script_filename = 'script_for_test_suite.sql'
script_filename = 'do_these_statements.sql'
f = open(script_filename, 'w')
f.close()
special.register_special_command(..., 'source', '\\. <filename>', 'Execute commands from file.', aliases=['\\.'])
Expand All @@ -694,7 +694,7 @@ def test_source_eager_completion(completer, complete_event):
try:
assert [x.text for x in result] == [
script_filename,
'screenshots/',
'doc/',
]
except AssertionError as e:
success = False
Expand All @@ -706,9 +706,9 @@ def test_source_eager_completion(completer, complete_event):


def test_source_leading_dot_suggestions_completion(completer, complete_event):
text = "source ./sc"
text = "source ./do"
position = len(text)
script_filename = 'script_for_test_suite.sql'
script_filename = 'do_these_statements.sql'
f = open(script_filename, 'w')
f.close()
special.register_special_command(..., 'source', '\\. <filename>', 'Execute commands from file.', aliases=['\\.'])
Expand All @@ -718,7 +718,7 @@ def test_source_leading_dot_suggestions_completion(completer, complete_event):
try:
assert [x.text for x in result] == [
script_filename,
'screenshots/',
'doc/',
]
except AssertionError as e:
success = False
Expand Down
2 changes: 1 addition & 1 deletion test/pytests/test_sqlexecute.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def test_cd_command_with_one_nonexistent_folder_name(executor):

@dbtest
def test_cd_command_with_one_real_folder_name(executor):
results = run(executor, 'system cd screenshots')
results = run(executor, 'system cd doc')
# todo would be better to capture stderr but there was a problem with capsys
assert results[0]['status_plain'] is None

Expand Down
Loading