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

Add unit tests for RqMachine. #466

Merged
merged 13 commits into from
Oct 9, 2019

Conversation

bcipriano
Copy link
Collaborator

Link the Issue(s) this Pull Request is related to.
#396

Summarize your change.
Coverage up to 82% now in that file.

@bcipriano bcipriano marked this pull request as ready for review October 4, 2019 19:32
Copy link
Collaborator

@gregdenton gregdenton left a comment

Choose a reason for hiding this comment

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

LGTM. One small style note to consider.

Comment on lines 557 to 559
with open(rqconstants.PATH_MEMINFO, "r") as fp:
meminfoLines = fp.readlines()
for line in meminfoLines:
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a pattern I tend to prefer the following since it doesn't store the entire file in memory (probably not of concern with such a small file):

with open(rqconstants.PATH_MEMINFO) as fp:
    for line in fp:
        ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, updated.

@bcipriano bcipriano merged commit 0d1d9d7 into AcademySoftwareFoundation:master Oct 9, 2019
@bcipriano bcipriano deleted the rqmachine-tests branch October 9, 2019 02:28
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.

None yet

2 participants