Skip to content

check50.import_checks should rename checks #184

Description

@Jelleas

Something like:

check50.import_checks("../less", prefix="less_")

Right now it's too easy to break checks through naming conflicts.

This feature would require renaming in check50.runner._check_names.

There's also currently a weird dependency on the original function name, rather than the decorated one, within the dependency graph. This is caused because the CheckResults are created from the original function, and the dependency graph operates on these results. Down the line, this causes things to break if you rename the decorated function, but not the original one. We should change this such that everything uses the decorated function name as you would expect.

Here's a working example implemented in the checks:

https://github.com/minprog/cs50x/blob/2019/sentimental/__init__.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

4.xIssues relating to check50 4.xenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions