Commits

Aleš Erjavec committed bebeeae

Added 'arrayexpress' doctests.

  • Participants
  • Parent commits ee88879

Comments (0)

Files changed (1)

File orangecontrib/bio/tests/test_arrayexpress.py

+import unittest
+import doctest
+
+from .. import arrayexpress
+
+
+def load_tests(loader, tests, ignore):
+    conn = arrayexpress.ArrayExpressConnection()
+    foo = type("foo", (object,), {})()
+    bar = type("bar", (object,), {})()
+
+    tests.addTests(
+        doctest.DocTestSuite(
+            arrayexpress,
+            extraglobs={"conn": conn, "foo": foo, "bar": bar},
+            optionflags=doctest.ELLIPSIS)
+    )
+    return tests