Mercurial > repos > shellac > guppy_basecaller
diff env/lib/python3.7/site-packages/prov/tests/test_dot.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
| author | shellac |
|---|---|
| date | Mon, 01 Jun 2020 08:59:25 -0400 |
| parents | 79f47841a781 |
| children |
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/prov/tests/test_dot.py Thu May 14 16:47:39 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -""" -Created on Aug 13, 2015 - -@author: Trung Dong Huynh -""" -from __future__ import (absolute_import, division, print_function, - unicode_literals) - -import unittest - -# Skipping SVG tests if pydot is not installed -from pkgutil import find_loader -if find_loader("pydot") is not None: - - from prov.dot import prov_to_dot - from prov.tests.test_model import AllTestsBase - from prov.tests.utility import DocumentBaseTestCase - - - class SVGDotOutputTest(DocumentBaseTestCase, AllTestsBase): - """ - One-way output SVG with prov.dot to exercise its code - """ - MIN_SVG_SIZE = 850 - - def do_tests(self, prov_doc, msg=None): - dot = prov_to_dot(prov_doc) - svg_content = dot.create(format="svg") - # Very naive check of the returned SVG content as we have no way to check the graphical content - self.assertGreater( - len(svg_content), self.MIN_SVG_SIZE, - "The size of the generated SVG content should be greater than %d bytes" % self.MIN_SVG_SIZE - ) - - -if __name__ == '__main__': - unittest.main()
