mirror of
https://github.com/MinaSaad1/pbi-cli
synced 2026-04-21 13:37:19 +00:00
Remove the MCP server binary dependency entirely. All 22 command groups now connect directly to Power BI Desktop's Analysis Services engine via pythonnet and bundled Microsoft.AnalysisServices DLLs (~20MB, in-process). - Direct .NET TOM/ADOMD.NET interop for sub-second command execution - 7 Claude Code skills (added Diagnostics and Partitions & Expressions) - New commands: trace, transaction, calendar, expression, partition, advanced culture - 91 tests passing, all skills updated, README/CHANGELOG rewritten
39 lines
908 B
Python
39 lines
908 B
Python
"""Tests for table commands."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from typing import Any
|
|
|
|
from click.testing import CliRunner
|
|
|
|
from pbi_cli.main import cli
|
|
|
|
|
|
def test_table_list(
|
|
cli_runner: CliRunner,
|
|
patch_session: Any,
|
|
tmp_connections: Path,
|
|
) -> None:
|
|
result = cli_runner.invoke(cli, ["--json", "table", "list"])
|
|
assert result.exit_code == 0
|
|
assert "Sales" in result.output
|
|
|
|
|
|
def test_table_get(
|
|
cli_runner: CliRunner,
|
|
patch_session: Any,
|
|
tmp_connections: Path,
|
|
) -> None:
|
|
result = cli_runner.invoke(cli, ["--json", "table", "get", "Sales"])
|
|
assert result.exit_code == 0
|
|
|
|
|
|
def test_table_delete(
|
|
cli_runner: CliRunner,
|
|
patch_session: Any,
|
|
tmp_connections: Path,
|
|
) -> None:
|
|
result = cli_runner.invoke(cli, ["--json", "table", "delete", "Sales"])
|
|
assert result.exit_code == 0
|
|
assert "deleted" in result.output
|