Add unit testing capabilities and basic tests for check_for_usbdevice
authorManuel Rom <manuel.rom@student.tugraz.at>
Fri, 11 Sep 2020 11:52:18 +0000 (13:52 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 2 Oct 2020 13:23:20 +0000 (15:23 +0200)
commit6f3eb526aad869050f24159dc46e5d3bfe7cf952
tree5e58c0f772c1a8f2dc2e69f7d974c5e41a57bdd4
parente73d9be6caed76c6fe1b97c4465f400a5a9b5926
Add unit testing capabilities and basic tests for check_for_usbdevice

* Add a test directory and create file
  'test/grml2usb_test.py'
* Provide basic test for extract_device_name()
* Extract regex match into separate function for
  better readability and testing options
* Provide pytest.ini configuration to be able to use
  custom markers
* Add symlink in test directory pointing to grml2usb
  for usage with importlib
grml2usb
pytest.ini [new file with mode: 0644]
test/grml2usb.py [new symlink]
test/grml2usb_test.py [new file with mode: 0644]