test mantis tickets
This commit is contained in:
parent
3893766a9c
commit
b1d234aa20
|
@ -1,3 +1,5 @@
|
|||
import json
|
||||
|
||||
from todoist_interface.mantishub import MantishubAPI
|
||||
|
||||
|
||||
|
@ -12,5 +14,12 @@ def test_mantishub_get_tickets():
|
|||
assert len(tickets) > 0
|
||||
|
||||
|
||||
def test_convert_to_todoist():
|
||||
assert False
|
||||
def test_covert_to_todoist(example_tickets):
|
||||
mantis = MantishubAPI("token")
|
||||
issues = json.loads(example_tickets)
|
||||
|
||||
tasks = mantis.convert_to_todoist(issues["issues"])
|
||||
assert tasks == [
|
||||
{'content': '[Sample issue title](https://contria.mantishub.io/view.php?id=1)',
|
||||
'label_ids': [2158784659]}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue