mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
remove some pytest warnings
This commit is contained in:
@@ -132,7 +132,7 @@ def os_environ():
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
# Copied from https://gist.github.com/pfctdayelise/5719730
|
||||
idparametrize = getattr(metafunc.function, 'idparametrize', None)
|
||||
idparametrize = metafunc.definition.get_closest_marker('idparametrize')
|
||||
if idparametrize:
|
||||
argnames, testdata = idparametrize.args
|
||||
ids, argvalues = zip(*sorted(testdata.items()))
|
||||
|
||||
Reference in New Issue
Block a user