mirror of
https://github.com/not-kennethreitz/blindspin.git
synced 2026-06-05 23:10:18 +00:00
18 lines
320 B
Python
18 lines
320 B
Python
import click
|
|
from click.testing import CliRunner
|
|
|
|
import click_spinner
|
|
|
|
|
|
def test_spinner():
|
|
@click.command()
|
|
def cli():
|
|
with click_spinner.spinner():
|
|
for thing in range(10):
|
|
pass
|
|
|
|
runner = CliRunner()
|
|
result = runner.invoke(cli, [])
|
|
assert result.exception is None
|
|
|