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 @@ -3,6 +3,7 @@
## 0.7.10dev

* [Doc] Document --persist-replace in API section (#539)
* [Fix] Fixed CI issue by updating `invalid_connection_string_duckdb` in `test_magic.py` (#631)

## 0.7.9 (2023-06-19)

Expand Down
3 changes: 1 addition & 2 deletions src/tests/test_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ def test_error_on_invalid_connection_string_with_possible_typo(ip_empty, clean_c
An error happened while creating the connection: connect(): incompatible function arguments. The following argument types are supported:
1. (database: str = ':memory:', read_only: bool = False, config: dict = None) -> duckdb.DuckDBPyConnection

Invoked with: kwargs: host='invalid_db'.
Invoked with: kwargs: host='invalid_db', config={{}}.

Perhaps you meant to use the 'duckdb' db
To find more information regarding connection: https://jupysql.ploomber.io/en/latest/integrations/duckdb.html
Expand All @@ -1104,7 +1104,6 @@ def test_error_on_invalid_connection_string_with_possible_typo(ip_empty, clean_c

def test_error_on_invalid_connection_string_duckdb(ip_empty, clean_conns):
result = ip_empty.run_cell("%sql duckdb://invalid_db")

assert invalid_connection_string_duckdb.strip() == str(result.error_in_exec)
assert isinstance(result.error_in_exec, UsageError)

Expand Down