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

adds register operation to Parser #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Miiike89
Copy link

- enables the User to register new operations, which can be parsed by Parser

	- enables the User to register new operations, which can be parsed by Parser
@cansadadeserfeliz
Copy link
Contributor

@Miiike89 please, add some unit tests


def register_operation(self, token, priority, index, func):

if token not in self.ops1 or token not in self.ops1:
Copy link

@jeffreyscottgraham jeffreyscottgraham Jun 19, 2020

Choose a reason for hiding this comment

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

um.... this seems wrong... same check of ops1 twice? And not checking ops ?
And then adding it to yet another called ops2?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, you guys are right. It worked for my simple cases, but indeed there is a lack of errorhandling and unittests. I'am sorry, about that.
Unfortunately I'am currently quite swamped at work and won´t be able to fix this right away. You guys have to give me some time, please.

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.

3 participants