node = <Function test_auth>
def get_default_snapshot_dir(node):
"""
Returns the default snapshot directory for the pytest test.
:type node: _pytest.python.Function
:rtype: Path
"""
test_module_dir = node.fspath.dirpath()
test_module = node.fspath.purebasename
if node.originalname is None:
test_name = node.name
parametrize_name = None
else:
test_name = node.originalname
parametrize_match = PARAMETRIZED_TEST_REGEX.match(node.name)
> assert parametrize_match is not None, 'Expected request.node.name to be of format TEST_FUNCTION[PARAMS]'
E AssertionError: Expected request.node.name to be of format TEST_FUNCTION[PARAMS]
E assert None is not None
Throws an exception