20 lines
555 B
Python
20 lines
555 B
Python
import pytest
|
|
from textual.app import App
|
|
from textual.screen import Screen
|
|
from src.ui.screens.dashboard import DashboardScreen
|
|
from src.cli import cli
|
|
from click.testing import CliRunner
|
|
|
|
|
|
class TestDashboardIntegration:
|
|
def test_dashboard_screen_composes(self):
|
|
app = App()
|
|
screen = DashboardScreen()
|
|
assert screen is not None
|
|
|
|
def test_cli_entry_point(self):
|
|
runner = CliRunner()
|
|
result = runner.invoke(cli, ["--help"])
|
|
assert result.exit_code == 0
|
|
assert "DevDash CLI" in result.output
|