Skip to content

Conversation

rubenperezm
Copy link

Check whether optional dependencies (i.e., networkx and scipy) are installed before running tests that use them. Fixes #120.

  • Moved the SciPy wrapper tests from the main algorithm test class to a dedicated algorithm_scipy_wrapper_tests class for better organization. If SciPy is not installed, it only skips the test cases that need SciPy, while the rest of the algorithm_tests are not skipped.

  • Moved the handling of the optional networkx dependency in free_form_test_case to check if the package is present before calling free_form(). If the package is not present, it skips the test.

check whether optional dependencies (i.e., networkx and scipy) are installed before running tests that use them
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.

[BUG] Test code should not assume networkx is installed
1 participant