-
Notifications
You must be signed in to change notification settings - Fork 0
Test solvers design #1
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
base: master
Are you sure you want to change the base?
Conversation
| self._tests = {} | ||
|
|
||
| def _get_or_create_test_meta(self, func: Callable) -> SolverTestMeta: | ||
| name = func.__name__ |
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 worry about name conflicts here.
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.
Let's use the function and the name to identify name conflicts and raise errors?
| include: Optional[List[Union[str, re.Pattern]]] = None, | ||
| exclude: Optional[List[Union[str, re.Pattern]]] = None, | ||
| include_tags: Optional[List[str]] = None, | ||
| exclude_tags: Optional[List[str]] = None, | ||
| warn_unsupported: bool = False, | ||
| warn_unavailable: bool = False, |
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 describe each of these in a docstring?
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.
Particularly the first two. They are not obvious to me.
| pass | ||
|
|
||
|
|
||
| add_tests(TestSolvers, GurobiDirect) |
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.
Does the order in which python imports files matter here?
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.
Maybe this is just something we address with documentation.
This PR just to start review of the test solvers suite.