Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: parameter free mock task instance #242

Open
vaaaaanquish opened this issue Aug 29, 2021 · 0 comments
Open

Feature Request: parameter free mock task instance #242

vaaaaanquish opened this issue Aug 29, 2021 · 0 comments
Labels

Comments

@vaaaaanquish
Copy link
Contributor

I want a mock task instance generator to make test more convenient.

now

        from_date = datetime.date(2020, 1, 1)
        to_date = datetime.date(2020, 1, 5)
        target = gokart.TaskOnKart()

        task = ExampleTask(from_date=from_date, to_date=to_date, target=target)
        X = task.requires()

feature image

from gokart.testing import mocking
...
    task = mocking(ExampleTask)(from_date=from_date)
    X = task.requires()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant