blob: 425dce6f653650b0a573d20b3b251d98a7abfe34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
=======
Testing
=======
This project utilizes the pytest framework. Make sure you add a new test case
with any new logic you introduce to the lcitool code base.
Whenever you add new package mappings the test suite will naturally fail
because it simply doesn't know about them. In that case, just re-run the test
suite as
::
$ python3 -m pytest --regenerate-output
and the expected package data sets will be updated. You can then just grab the
changes and add them to your commit. Beware though that if you test a buggy
code this way the tests would not be able to catch regressions since the
"correct" test output would now match the flawed output.
|