IRNAS / irnas-east-software

East is a command line meta-tool, useful for creating, managing, and deploying Zephyr or nRF Connect SDK projects.
MIT License
10 stars 1 forks source link

Add several unit test in pytest #28

Closed MarkoSagadin closed 2 years ago

MarkoSagadin commented 2 years ago

Description

This PR lays fondation for writing unit tests for east tool.

Areas of interest

Please check files in the tests folder. I am mostly using basic fixtures such as tmp_path, tmp_path_factory, monkeypatch and mocket to create a fake west workspace. The use of this fixtures is quite straightforward once you get past beginner mistakes.

Checklist

Related issues

Fixes #27

After-review steps

MarkoSagadin commented 2 years ago

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.