Skip to content

test: unit tests distribution middleware, distance - #150

Merged
uniqueg merged 2 commits into
devfrom
test/task-distribution
Mar 19, 2023
Merged

uniqueg merged 2 commits into
devfrom
test/task-distribution

Conversation

@Ayush5120

Copy link
Copy Markdown
Contributor

Unit test for the distance-based task distribution module with 100% coverage.

Resolves #134 and Partially resolves #15

Name                                               Stmts   Miss  Cover
----------------------------------------------------------------------
pro_tes/middleware/task_distribution/distance.py     100      0   100%
----------------------------------------------------------------------
TOTAL                                                100      0   100%

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please change the paths for the test files according to Python and pytest conventions. Have a look at FOCA for examples. Otherwise looks good :)

Comment thread .github/workflows/checks.yaml Resolved
Comment thread .github/workflows/checks.yaml Resolved

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, I didn't know we already had unit tests :)

Please fix these ASAP, rename the packages/modules according to Python/pytest naming conventions and update the pytest call as you say 🙏

@uniqueg uniqueg changed the title test: unit tests for distance-based task distribution module test: unit tests distribution middleware, distance Mar 19, 2023
@uniqueg
uniqueg merged commit f40c53d into dev Mar 19, 2023
@uniqueg
uniqueg deleted the test/task-distribution branch March 19, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several issues with TES/input URI processing in distance-based task distribution logic Add unit tests

2 participants