Skip to content

Commit 8820069

Browse files
committed
Add first test
1 parent 7e73654 commit 8820069

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ pyMBoot
55
[![PyPI Status](https://img.shields.io/pypi/v/mboot.svg)](https://pypi.python.org/pypi/mboot)
66
[![Python Version](https://img.shields.io/pypi/pyversions/mboot.svg)](https://www.python.org)
77

8-
pyMBoot is an Open Source python based library for configuring and upgrading the firmware in NXP Microcontrolers with embedded [MCUBOOT](https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT) (MCU Bootloader). Detailed description of MCUBOOT (KBOOT) key features and functionality is located [here](https://freescale.jiveon.com/docs/DOC-104512).
8+
pyMBoot is an Open Source python based library for configuring and upgrading the firmware in NXP Microcontrolers with
9+
embedded [MCUBOOT](https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT)
10+
(MCU Bootloader). Detailed description of `MCUBOOT / KBOOT` key features and functionality is located [here](https://freescale.jiveon.com/docs/DOC-104512).
911

1012
<p align="center">
1113
<img src="https://github.com/molejar/pyMBoot/blob/master/doc/connection.png?raw=true" alt="MBoot: HW Connection"/>

tests/test.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Copyright (c) 2019 Martin Olejar
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
6+
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
7+
8+
import pytest
9+
import mboot
10+
11+
12+
def test_helper_functions():
13+
14+
assert mboot.is_available_command(mboot.EnumCommandTag.FLASH_ERASE_ALL, 2)

0 commit comments

Comments
 (0)