Skip to content

Conversation

@eminyouskn
Copy link
Owner

This PR just to start review of the test solvers suite.

eminyouskn pushed a commit that referenced this pull request Oct 7, 2025
self._tests = {}

def _get_or_create_test_meta(self, func: Callable) -> SolverTestMeta:
name = func.__name__

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.

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?

Comment on lines +18 to +23
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,

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?

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)

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?

Copy link

@michaelbynum michaelbynum Oct 21, 2025

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.

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