Chris
more refactoring (and a minor setup.py tweak)
279b84e
raw
history blame
320 Bytes
#!/usr/bin/env python
"""Tests for `deep_translator` package."""
from click.testing import CliRunner
from deep_translator.cli import main
def results_test():
runner = CliRunner()
result = runner.invoke(cli.main, [ 'google', 'auto', 'en', '좋은'])
assert result.exit_code == 0
assert result == 'good'