-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix Logic, Improve Test Coverage, and Resilience #37
Fix Logic, Improve Test Coverage, and Resilience #37
Conversation
Using dashes in Python module names is bad. Specifically it is a problem as we want to import from the unit tests.
Hi @johannes-gehrs thanks for your PR. the method that you implement looks great and also allow to implement the unittest, but could we create a new method of the main class |
If it is a method then you always need to mock "god object" It is doable and if you insist I could refactor to that but I personally like normal functions, especially when we generally think about "pure logic" like we do here. 😄 |
If you are uncomfortable with the higher order function (not sure if that is the case) it would be relatively easy to refactor this to use a normal |
having a class Decider would be awesome! |
@johannes-gehrs did you have some time to create the |
Sorry for the long delay. I have refactored to a class. Everything else should have stayed the same but do you have a way to test before merging and releasing? |
Yes I have a script to deploy aws es and create multiple indexes to test it. Right now I deploy only for big changes. |
Let's get this merged? |
@johannes-gehrs I found some minor issue in the code, I've opened a PR on your repo |
@johannes-gehrs did you have a chance to review it? |
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.
can you please merge my minor changes
johannes-gehrs#1
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.
can you please merge my minor changes
johannes-gehrs#1
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.
can you please merge my minor changes
johannes-gehrs#1
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've done some minor change
here johannes-gehrs#1
can you merge you your branch?
<=
in the comparison meant that one more day than intended was deleted. See code.