Skip to content

Commit

Permalink
Add trivial test & set to run in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bskinn committed Sep 12, 2019
1 parent 9a562dd commit 59474ef
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- script: micropython/ports/unix/micropython -c 'import upip; upip.install(["unittest"])'
displayName: Install tooling

- script: micropython/ports/unix/micropython -X heapsize=50M -m unittest
displayName: Run unittest
- script: micropython/ports/unix/micropython -X heapsize=50M test/micropython/test_micropython.py
displayName: Run MicroPython tests

- job: flake8
pool:
Expand Down
41 changes: 41 additions & 0 deletions tests/micropython/test_micropython.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
r"""``unittest`` *tests for MicroPython, for* ``stdio-mgr``.
``stdio_mgr`` provides a context manager for convenient
mocking and/or wrapping of ``stdin``/``stdout``/``stderr``
interactions.
**Author**
Brian Skinn ([email protected])
**File Created**
12 Sep 2019
**Copyright**
\(c) Brian Skinn 2018-2019
**Source Repository**
http://github.com/bskinn/stdio-mgr
**Documentation**
See README.rst at the GitHub repository
**License**
The MIT License; see |license_txt|_ for full license terms
**Members**
"""

import unittest as ut


class TestDummyTest(ut.TestCase):
"""Initial stub test to confirm unittest suite is working."""

def test_dummy_test(self):
"""Confirm that a trivial test passes."""
self.assertTrue(True)


if __name__ == "__main__":
ut.main()

0 comments on commit 59474ef

Please sign in to comment.