-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathtest_circuitpython_kernel.py
More file actions
40 lines (28 loc) · 917 Bytes
/
test_circuitpython_kernel.py
File metadata and controls
40 lines (28 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_circuitpython_kernel
----------------------------------
Tests for `circuitpython_kernel` module.
"""
import sys
import unittest
from contextlib import contextmanager
from click.testing import CliRunner
from circuitpython_kernel import circuitpython_kernel
from circuitpython_kernel import cli
class TestCircuitpython_kernel(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_000_something(self):
pass
def test_command_line_interface(self):
runner = CliRunner()
result = runner.invoke(cli.main)
assert result.exit_code == 0
assert 'circuitpython_kernel.cli.main' in result.output
help_result = runner.invoke(cli.main, ['--help'])
assert help_result.exit_code == 0
assert '--help Show this message and exit.' in help_result.output