-
Notifications
You must be signed in to change notification settings - Fork 57
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
first step towards image refactoring #495
Conversation
Image.image_id and Image.image_size are both classmethods that conflict with attribute names; the classmethods generate random IDs but the attributes are just values. Move them out to functions.
- Arch Linux
Current coverage is
|
Hey @gabecase - we're pretty light on code reviewers right now, do you think you could have a look? |
@glyph sure I can look at this some tonight and tomorrow morning, will put some comments here on anything I find |
+1 lgtm. Sorry it took so long. |
@gabecase: feel free to merge the PR if you don't have any comments. |
Ok awesome 2 sets of eyes even better :) checking this out now |
"Fedora 22 (PVHVM)": {"minRam": 512, "minDisk": 20, | ||
"OS-EXT-IMG-SIZE:size": Image.image_size(), | ||
"OS-EXT-IMG-SIZE:size": random_image_size(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I like the re-useable random_image methods for the test data
LGTM! |
first step towards image refactoring
Begin to address #492 - this is just an initial example of how to use a plain-vanilla Image class rather than a subclass; there's lots more refactoring work to do, but this is a proof of concept.