-
Notifications
You must be signed in to change notification settings - Fork 17
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 pytest entrypoints #151
Conversation
* Initial fix. * Use Guava to merge the iterables. Looks a lot cleaner. * Cleaning. * Log entrypoints. * Enhance. * Add pytest calls to methods test. * Update .gitignore. * Move to new class. * Add pytest test class with an explicit ctor. * Simply assertions.
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.
One comment but I don't need to check again
FieldReference global = | ||
FieldReference.findOrCreate( | ||
PythonTypes.Root, | ||
Atom.findOrCreateUnicodeAtom( | ||
"global " | ||
+ getMethod() | ||
.getDeclaringClass() | ||
.getName() | ||
.toString() | ||
.substring( | ||
1, | ||
getMethod() | ||
.getDeclaringClass() | ||
.getName() | ||
.toString() | ||
.lastIndexOf('/'))), | ||
PythonTypes.Root); |
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.
There seem to be some repeated sub-expressions here. This would be more readable if those were stored in locals.
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.
Sorry, I more or less copied this and adapted it from the Turtle case. I'll have a look. I admittedly don't know everything that is going on here but it seems to work well.
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.
Ok no worries. Just a comment on readability, I'm sure it works.
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.
OK I gave a it a shot.
Modeled after the turtle entrypoints. See http://pytest.org.