MCPcopy Create free account
hub / github.com/webpy/webpy / _testable

Method _testable

tests/test_db.py:83–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.db.ctx.db.close()
82
83 def _testable(self):
84 try:
85 setup_database(self.dbname, driver=self.driver)
86 print("Running tests for %s" % self.__class__.__name__, file=web.debug)
87 return True
88 except ImportError as e:
89 print(str(e), "(ignoring %s)" % self.__class__.__name__, file=web.debug)
90 return False
91
92 def testUnicode(self):
93 # Bug#177265: unicode queries throw errors

Callers

nothing calls this directly

Calls 1

setup_databaseFunction · 0.85

Tested by

no test coverage detected