Skip to content

set function name on new test function #1

@toejough

Description

@toejough

at https://github.com/notion/dado/blob/master/dado/dado.py#L63 - the build_test function both builds the function, and builds the function's new name, and then returns both as a tuple.

It should set the function's name on the function and just return the function. The caller can then set that function in the module like setattr(module, func.__name__, func)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions