sw360 / capycli

CaPyCLI - Python scripts for software license compliance automation with SW360
Other
13 stars 7 forks source link

Issue39 first pytest file #40

Closed gernot-h closed 1 year ago

gernot-h commented 1 year ago

Note that his is a PR on top of #37, so it includes the change from #37.

Fixes #39 by adding the necessary infrastructure for pytest-based test classes and refactoring the "project createbom" testcases to use it.

This shows the pytest assert syntax and how to capture stdout with pytest using the "capsys" fixture.