OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
195 stars 64 forks source link

Tests that require `matplotlib` should be skipped if it's not installed #1061

Closed swryan closed 2 months ago

swryan commented 2 months ago

Task Description

When Dymos is installed without any of it's extra dependencies (including [test]), a user should still be able to run the tests without errors.

After doing a conda install of Dymos from conda-forge, which does not have the option to install with optional dependencies, and running testflo, a large number of tests fail due to matplotlib not being installed. There is also a test that requires pycodestyle. These tests should be skipped if the required dependency is not installed.