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

[Bug] decorator problem with MockAlgorithmClient method #874

Closed
harmbuisman opened this issue Sep 27, 2023 · 0 comments · Fixed by #882
Closed

[Bug] decorator problem with MockAlgorithmClient method #874

harmbuisman opened this issue Sep 27, 2023 · 0 comments · Fixed by #882
Labels
bug Something isn't working

Comments

@harmbuisman
Copy link
Contributor

Describe the bug
When using the MockAlgorithmClient, the order of decorators of the called method leads to an error:
@algorithm_client
@DaTa()

KeyError: 'INPUT_FILE' as it tries to get INPUT_FILE from os.environment.

The following order however works:
@DaTa()
@algorithm_client

To Reproduce
you can reproduce it by setting the wrong order in the mock_page.init file in the preprocessing branch and run make test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants