Migrated testing fixture:
`TestBase.__whitelist__` -> `TestBase.__allowlist__`
Migrated tox commands from deprecated to current:
`whitelist_externals` > `allowlist_externals`
Migrated test_session:
`blacklist` -> `blocklist`
Change-Id: I395d5ee977ff22fa703276b9b873cc96c59b9a35
(cherry picked from commit
f6fca84a7ffc71d743bea22e688ef3c944ba545b)
class TestBase(object):
# A sequence of database names to always run, regardless of the
# constraints below.
- __whitelist__ = ()
+ __allowlist__ = ()
# A sequence of requirement names matching testing.requires decorators
__requires__ = ()
db_mssql: .[mssql]
-whitelist_externals=sh
+allowlist_externals=sh
commands=
db_{mysql}: {env:BASECOMMAND} {env:MYSQL:} {posargs}
def _public_session_methods(self):
Session = sa.orm.session.Session
- blacklist = set(("begin", "query"))
+ blocklist = set(("begin", "query"))
ok = set()
for meth in Session.public_methods:
- if meth in blacklist:
+ if meth in blocklist:
continue
spec = inspect_getfullargspec(getattr(Session, meth))
if len(spec[0]) > 1 or spec[1]:
mssql: pyodbc
cov: pytest-cov
-whitelist_externals=sh
+allowlist_externals=sh
# PYTHONPATH - erased so that we use the build that's present
# in .tox as the SQLAlchemy library to be imported