fix: fix 'inconsistent-return-statements' for pylint
This commit is contained in:
parent
4f6229e5d9
commit
2fcff6b2a4
16 changed files with 43 additions and 9 deletions
|
@ -375,6 +375,10 @@ app_title = WuttaTest
|
|||
ver = self.app.get_version(obj=query)
|
||||
self.assertEqual(ver, version('SQLAlchemy'))
|
||||
|
||||
# random object will not yield a dist nor version
|
||||
ver = self.app.get_version(obj=42)
|
||||
self.assertIsNone(ver)
|
||||
|
||||
# can override dist via config
|
||||
self.config.setdefault('wuttatest.app_dist', 'python-configuration')
|
||||
ver = self.app.get_version()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue