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

Use mock data for element operator tests. #1330

Merged
merged 1 commit into from Oct 30, 2022

Conversation

ChiahungTai
Copy link
Collaborator

Description

Use mock data for element operator tests.

Motivation and Context

To speed up the operator test and give the freedom opertor test, the use of mock data is more convinent.

How Has This Been Tested?

  • Pass the test by running: pytest qlib/tests/ops/test_elem_operator.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation
  • Add new test cases

@ChiahungTai
Copy link
Collaborator Author

@you-n-g,
Could you please review this patch?
I would like to add more test cases for the other opertors based on this patch.
Thanks.

@you-n-g
Copy link
Collaborator

you-n-g commented Oct 30, 2022

Thanks for your contribution.
I think it is quite helpful!
It will be easier and clearer to write tests now :)

@you-n-g you-n-g merged commit fb5888b into microsoft:main Oct 30, 2022
@ChiahungTai ChiahungTai deleted the elem_ops_test branch November 15, 2022 13:17
@you-n-g you-n-g added the enhancement New feature or request label Dec 9, 2022
qianyun210603 pushed a commit to qianyun210603/qlib that referenced this pull request Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants