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

SorrTask-891 Unit tests for compute epoch function #901

Merged
merged 8 commits into from
May 3, 2024

Conversation

aish-nidhi
Copy link
Collaborator

@aish-nidhi aish-nidhi commented May 2, 2024

Task #891

  • Added unit tests for compute_epoch function:-
    -> Function for fetching test data, one each for series and dataframe
    -> 3 Unit Tests, one for each available unit value for Series input
    -> Unit test with dataframe input

@aish-nidhi aish-nidhi mentioned this pull request May 2, 2024
2 tasks
@DanilYachmenev
Copy link
Collaborator

@aish-nidhi while your PR is being reviewed, read carefully https://github.com/kaizen-ai/kaizenflow/blob/master/docs/coding/all.submit_code_for_review.how_to_guide.md and update PR accordingly

keep in mind that in your probation term the most important part that we look at is your ability to follow the specs and our code style
tasks are basic, what is expected is ability to understand documentation and do what is requested so we do not need to spend time on additional explainations

@aish-nidhi aish-nidhi requested a review from DanilYachmenev May 2, 2024 16:32
@aish-nidhi aish-nidhi added the PR_for_reviewers The PR needs to be reviewed by Team Leaders label May 2, 2024
@aish-nidhi aish-nidhi linked an issue May 2, 2024 that may be closed by this pull request
2 tasks
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
@DanilYachmenev DanilYachmenev added PR_for_authors The PR needs changes and removed PR_for_reviewers The PR needs to be reviewed by Team Leaders labels May 2, 2024
@DanilYachmenev
Copy link
Collaborator

Also pls remove a TODO above the func def
Снимок экрана 2024-05-03 в 00 18 22

@aish-nidhi
Copy link
Collaborator Author

Resolved comments and updated PR. Also, removed the TODO comment above the function.

@aish-nidhi aish-nidhi added PR_for_reviewers The PR needs to be reviewed by Team Leaders and removed PR_for_authors The PR needs changes labels May 2, 2024
Copy link
Collaborator

@DanilYachmenev DanilYachmenev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 nits and lgtm for me
ping @samarth9008 for a final review when done

core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
core/finance/test/test_prediction_processing.py Outdated Show resolved Hide resolved
@aish-nidhi aish-nidhi requested a review from samarth9008 May 2, 2024 18:09
Copy link
Collaborator

@samarth9008 samarth9008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@samarth9008 samarth9008 merged commit 9d9df5e into master May 3, 2024
1 check passed
@samarth9008 samarth9008 deleted the SorrTask891_Unit_test_compute_epoch_function branch May 3, 2024 16:55
Kev-Daran pushed a commit to Kev-Daran/kaizenflow that referenced this pull request May 8, 2024
* Issue 891 - Unit test code skeleton

* Issue-891 3 unit tests with each available unit value for Series input.

* Issue-891 Unit test of compute epoch function for dataframe input with default unit

* Adding missed full stop for comment

* PR comment fixes

* Removing todo from function

* PR comment fixes

---------

Co-authored-by: Aishwarya Nidhi <aishwaryanidhi@Aishwaryas-Air.cgocable.net>
Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>
DIPOLAWSON pushed a commit that referenced this pull request May 9, 2024
* Issue 891 - Unit test code skeleton

* Issue-891 3 unit tests with each available unit value for Series input.

* Issue-891 Unit test of compute epoch function for dataframe input with default unit

* Adding missed full stop for comment

* PR comment fixes

* Removing todo from function

* PR comment fixes

---------

Co-authored-by: Aishwarya Nidhi <aishwaryanidhi@Aishwaryas-Air.cgocable.net>
Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>
Nadiyahlw added a commit that referenced this pull request May 9, 2024
* Revert "Add DATA605 directory (#876)" (#884)

This reverts commit 00e90d2.

* SorrTask786 Unit test for split_positive_and_negative_parts() (#883)

* Added Unit test for split_positive_and_negative_parts()

* Resolved comments

* Added remaining comments

* deleted unnecessary files

* "Fixes"

* Comment resolution

* Comments resolved.

---------

Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>

* SorrTask-782 Unit tests for calculate_vwap_twap() (#801)

* Issue #782 draft PR with code skeleton

* Issue #782 unit tests for function calculate_vwap_twap with 2 different resampling rules

* Fix for ambiguous truth value of multiindex column names

* Linter corrections on file

* Changes for PR comment

* Modifications to address PR comments

* Adding full-stop to comments

---------

Co-authored-by: Aishwarya Nidhi <aishwaryanidhi@Aishwaryas-Air.cgocable.net>
Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>

* SorrTask-891 Unit tests for compute epoch function (#901)

* Issue 891 - Unit test code skeleton

* Issue-891 3 unit tests with each available unit value for Series input.

* Issue-891 Unit test of compute epoch function for dataframe input with default unit

* Adding missed full stop for comment

* PR comment fixes

* Removing todo from function

* PR comment fixes

---------

Co-authored-by: Aishwarya Nidhi <aishwaryanidhi@Aishwaryas-Air.cgocable.net>
Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>

* SorTask903 Unit test convert_seconds_to_pandas_minutes()  (#907)

* Added unit test for function convert_seconds_to_minutes

* Nits

---------

Co-authored-by: Shaunak  Dhande <77265046+Shaunak01@users.noreply.github.com>
Co-authored-by: neha2801-create <77967216+neha2801-create@users.noreply.github.com>
Co-authored-by: Samarth KaPatel <samarth.kapatel5@gmail.com>
Co-authored-by: Aishwarya Nidhi <nidhiaishwarya8@gmail.com>
Co-authored-by: Aishwarya Nidhi <aishwaryanidhi@Aishwaryas-Air.cgocable.net>
@Nadiyahlw Nadiyahlw mentioned this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR_for_reviewers The PR needs to be reviewed by Team Leaders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit test compute_epoch()
3 participants