diff --git a/poetry.lock b/poetry.lock index 9bf68ada..de1d6bc1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1643,7 +1643,7 @@ nebula3-python = ">=3.8.0,<4.0.0" name = "harlequin-odbc" version = "0.1.1" description = "A Harlequin adapter for ODBC drivers." -optional = false +optional = true python-versions = ">=3.8.1,<4.0" files = [ {file = "harlequin_odbc-0.1.1-py3-none-any.whl", hash = "sha256:7c5554dec9ef0bedad5acb040b7346ae60257e8b907f6254398ba6beec0cde21"}, @@ -2917,7 +2917,7 @@ types = ["typing-extensions"] name = "pyodbc" version = "5.1.0" description = "DB API module for ODBC" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "pyodbc-5.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:02fe9821711a2d14415eaeb4deab471d2c8b7034b107e524e414c0e133c42248"}, @@ -3948,4 +3948,4 @@ trino = ["harlequin-trino"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0.0" -content-hash = "7fec803f0d15ab1d34af5c80ab9c859d0b8ba21cc34c914b0f3081ff59c579f0" +content-hash = "8477539a3b7e033a5dcc7c5b3cdda4b91f466ba1e4116c82996152e5b8da09ab" diff --git a/pyproject.toml b/pyproject.toml index 7a3ec530..8e70617c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,6 @@ pre-commit = "^3.3.1" textual-dev = "^1.0.1" harlequin-postgres = "^0.2" harlequin-mysql = "^0.1.1" -harlequin-odbc = "^0.1.1" pyinstrument = "^4.6.2" [tool.poetry.group.static.dependencies] diff --git a/tests/functional_tests/__snapshots__/test_run_query_bar.ambr b/tests/functional_tests/__snapshots__/test_run_query_bar.ambr index 79e4faea..7fcc795f 100644 --- a/tests/functional_tests/__snapshots__/test_run_query_bar.ambr +++ b/tests/functional_tests/__snapshots__/test_run_query_bar.ambr @@ -1730,190 +1730,189 @@ font-weight: 700; } - .terminal-1500791598-matrix { + .terminal-3945415785-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1500791598-title { + .terminal-3945415785-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-1500791598-r1 { fill: #777777 } - .terminal-1500791598-r2 { fill: #feffac } - .terminal-1500791598-r3 { fill: #c5c8c6 } - .terminal-1500791598-r4 { fill: #dfdfdf } - .terminal-1500791598-r5 { fill: #858585 } - .terminal-1500791598-r6 { fill: #181818 } - .terminal-1500791598-r7 { fill: #dddddd } - .terminal-1500791598-r8 { fill: #9f9f9f } - .terminal-1500791598-r9 { fill: #ffb6d9 } - .terminal-1500791598-r10 { fill: #0c0c0c;font-weight: bold } - .terminal-1500791598-r11 { fill: #212116;font-weight: bold } - .terminal-1500791598-r12 { fill: #45ffca } + .terminal-3945415785-r1 { fill: #777777 } + .terminal-3945415785-r2 { fill: #feffac } + .terminal-3945415785-r3 { fill: #c5c8c6 } + .terminal-3945415785-r4 { fill: #dfdfdf } + .terminal-3945415785-r5 { fill: #858585 } + .terminal-3945415785-r6 { fill: #181818 } + .terminal-3945415785-r7 { fill: #dddddd } + .terminal-3945415785-r8 { fill: #ffb6d9 } + .terminal-3945415785-r9 { fill: #0c0c0c;font-weight: bold } + .terminal-3945415785-r10 { fill: #212116;font-weight: bold } + .terminal-3945415785-r11 { fill: #45ffca } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - Harlequin + Harlequin - + - -  Data Catalog ───────────── Query Editor ───────────────────────────────────────────────────────────────────────── - ▶ main db1   - - - - - - - - - - - - - - - ──────────────────────────────────────────────────────────────────────────────────────── - Tx: Manual🡅X Limit 500Run Query -  Query Results ──────────────────────────────────────────────────────────────────────── - - - - - - - - - - - - - - - - ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -  CTRL+Q  Quit  F1  Help  F8  History  CTRL+ENTER / CTRL+J  Run Query  F4  Format Query  CTRL+S  Save Query  CTRL+O  Ope… + +  Data Catalog ───────────── Query Editor ───────────────────────────────────────────────────────────────────────── + ▶ main db1   + + + + + + + + + + + + + + + ──────────────────────────────────────────────────────────────────────────────────────── + Tx: Manual🡅X Limit 500Run Query +  Query Results ──────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── +  CTRL+Q  Quit  F1  Help  F8  History  CTRL+ENTER / CTRL+J  Run Query  F4  Format Query  CTRL+S  Save Query  CTRL+O  Ope… diff --git a/tests/functional_tests/test_run_query_bar.py b/tests/functional_tests/test_run_query_bar.py index 5c12e9fb..05ea5a4a 100644 --- a/tests/functional_tests/test_run_query_bar.py +++ b/tests/functional_tests/test_run_query_bar.py @@ -123,6 +123,7 @@ async def test_transaction_button( assert app.connection.transaction_mode.label == "Auto" snap_results.append(await app_snapshot(app, "Initialize with Tx: Auto")) await pilot.click("#transaction_button") + await pilot.pause(0.3) await pilot.wait_for_animation() assert app.connection.transaction_mode assert app.connection.transaction_mode.label == "Manual"