tests/test_taskscheduler.py
raw| 1 | import pytest |
| 2 | import sys |
| 3 | |
| 4 | |
| 5 | @pytest.mark.skipif(sys.platform != "win32", reason="requires Windows") |
| 6 | def test_execaction_filters_none_values_in_args_and_will_not_raise_errors(): |
| 7 | """ExecAction will filter any None values in the args list and will not raise any errors.""" |
| 8 | from DisplayCAL.taskscheduler import ExecAction |
| 9 | |
| 10 | ea = ExecAction(cmd="", args=[None]) # This should not raise any errors. |