mirror of https://github.com/JoshKarpel/spiel
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
373 B
Python
21 lines
373 B
Python
from functools import partial
|
|
from typing import Callable, List
|
|
|
|
import pytest
|
|
from click.testing import Result
|
|
from typer.testing import CliRunner
|
|
|
|
from orate.main import app
|
|
|
|
CLI = Callable[[List[str]], Result]
|
|
|
|
|
|
@pytest.fixture
|
|
def runner() -> CliRunner:
|
|
return CliRunner()
|
|
|
|
|
|
@pytest.fixture
|
|
def cli(runner: CliRunner) -> CLI:
|
|
return partial(runner.invoke, app)
|