Skip to content

Conversation

@Adam-Boutin
Copy link
Contributor

I have added 4 extra tests to tests/test_scheduler.py. These tests are as follows:

test_machine_info:
This makes sure that calling load_machines() with machine_info gets correctly sorted through the elif block.

test_restrict_machines:
This test checks that if test_restrict_machines() is called directly it will not alter a machine list that has less than or equal to the ncores specified.

test_lsb_mcpu:
simply makes sure that "LSB_MCPU_HOSTS" is checked for a possible host list.

test_no_machine_name:
Checks to make sure that _parse_host_info will throw the 'Problem with machine list format.' exception if there is a blank machine name.

Please let me know if there is anything incorrect, poor logic, or unneeded tests here.
If this is accepted this will be my first contribution. I would be happy to receive any feedback and look forward to working on more testing.

Copy link
Contributor

@mkundu1 mkundu1 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@dnwillia-work
Copy link
Collaborator

dnwillia-work commented Mar 6, 2023

Looks good to me too. Please can you either a) pre-squash all your commits or b) squash and merge them.

@Adam-Boutin Adam-Boutin merged commit d24a562 into main Mar 6, 2023
@Adam-Boutin Adam-Boutin deleted the testing/increasing_coverage branch March 6, 2023 22:27
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.

5 participants