mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Add tests for priority conversions
This commit is contained in:
parent
e9d788904d
commit
99e7e322f1
20
tests/test_priority.py
Normal file
20
tests/test_priority.py
Normal file
@ -0,0 +1,20 @@
|
||||
""" Priority Tests
|
||||
|
||||
Test conversions between Todoist and Taskwarrior priorities.
|
||||
"""
|
||||
import pytest
|
||||
from todoist_taskwarrior import utils
|
||||
|
||||
|
||||
def test_priorities():
|
||||
assert utils.parse_priority(1) == None
|
||||
assert utils.parse_priority(2) == 'L'
|
||||
assert utils.parse_priority(3) == 'M'
|
||||
assert utils.parse_priority(4) == 'H'
|
||||
|
||||
def test_priorities_str():
|
||||
assert utils.parse_priority('1') == None
|
||||
assert utils.parse_priority('2') == 'L'
|
||||
assert utils.parse_priority('3') == 'M'
|
||||
assert utils.parse_priority('4') == 'H'
|
||||
|
Loading…
Reference in New Issue
Block a user