mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user