neutron/neutron/tests
Sahid Orentino Ferdjaoui 609ebd9504 test: fix docstring validation function
For some reason in Python even if using getattr with None and as
default value a string for the type __doc__ will return None.

>>> type(getattr(None, "__doc__", ""))
<class 'NoneType'>

The error reported was:

ft1.1: neutron.tests.functional.db.test_migrations.TestModelsMigrationsMySQL.test_branchestesttools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
    return f(self, *args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/db/test_migrations.py", line 302, in test_branches
    find_migration_exceptions()
  File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/db/test_migrations.py", line 253, in find_migration_exceptions
    if len(explanation) < 1:
TypeError: object of type 'NoneType' has no len()

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I7c03bac9c6e8dd074325f511e555c10fec8e77fc
2022-11-07 13:21:00 +01:00
..
common Fix typos in error/log messages 2022-06-29 15:59:22 +05:30
contrib Add "quota-check-limit" extension to OVN extension list 2021-11-26 09:50:26 +00:00
etc Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
fullstack Merge "Check subnet overlapping after add router interface" 2022-11-01 19:33:20 +00:00
functional test: fix docstring validation function 2022-11-07 13:21:00 +01:00
unit Merge "Check subnet overlapping after add router interface" 2022-11-01 19:33:20 +00:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
post_mortem_debug.py
tools.py Extend database to support portforwardings with port range 2022-03-15 09:10:23 -03:00