-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestGraph.py
More file actions
29 lines (25 loc) · 786 Bytes
/
testGraph.py
File metadata and controls
29 lines (25 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import graph
g = graph.Graph()
g.addNode(graph.Node('id1', graph.Node.Type.JIRA, {
"type": "TestingSubtask",
"URL": "www.seznam.cz",
"code": "ZPL-322",
"summary": "Component automation",
"assignee": "Milan Dubský",
"assigneeImage": "https://secure.gravatar.com/avatar/91bad8ceeec43ae303790f8fe238164b",
"status": "In Progress",
"statusColor": "tan",
"completed": 3,
"estimated": 5
}))
g.addNode(graph.Node('id2', graph.Node.Type.GIT, {
"type": "branch",
"URL": "http://www.seznam.cz",
"name": "zaap/devel",
"master": True
}))
g.addEdge(graph.Edge('id1','id2', 'subtask'))
g.addEdge(graph.Edge('id1','id3', 'invalid'))
g.saveGraphJson('test.json', {'Caption': 'Test'})