Merge branch 'master' into master

This commit is contained in:
jola5
2017-01-19 23:07:49 +01:00
committed by GitHub
32 changed files with 261 additions and 9 deletions
+5 -1
View File
@@ -17,6 +17,10 @@ class GraphAPITest(APITest):
self.check_equal(resp.headers["Content-Type"], "image/svg+xml")
self.check_equal(resp.content[:4], '<?xm')
resp = self.get("/api/graph.dot")
self.check_equal(resp.headers["Content-Type"], "text/plain; charset=utf-8")
self.check_equal(resp.content[:13], 'digraph aptly')
# make sure our default layout is horizontal
default = self.get("/api/graph.svg").content
horizontal = self.get("/api/graph.svg?layout=horizontal").content
@@ -32,4 +36,4 @@ class GraphAPITest(APITest):
svgVHeight = ET.fromstring(vertical).get('height').replace("pt","")
#self.check_gt(svgHWidth, svgVWidth)
#self.check_gt(svgVHeight, svgHHeight)
#self.check_gt(svgVHeight, svgHHeight)