Add more test cases in `optuna/visualization/matplotlib/*.py`
See original GitHub issueMotivation
Currently, test cases in optuna/visualization/matplotlib/*.py
are not enough comparing to optuna/visualization/*.py
. For example, in the case of optuna/visualization/matplotlib/edf.py
, we should check the number of lines and titles of each figure as we fixed them in https://github.com/optuna/optuna/pull/2642.
Description
- test_contour.py (https://github.com/optuna/optuna/pull/2806)
- test_edf.py (https://github.com/optuna/optuna/pull/2642)
- test_intermediate_plot.py (https://github.com/optuna/optuna/pull/2754)
- test_optimization_history.py (https://github.com/optuna/optuna/pull/2761)
- test_parallel_coordinate.py (https://github.com/optuna/optuna/pull/2778)
- test_param_importances.py (https://github.com/optuna/optuna/pull/2774)
- test_pareto_front.py (https://github.com/optuna/optuna/pull/2763)
- test_slice.py (https://github.com/optuna/optuna/pull/2764)
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Getting Started With Testing in Python
The one built into the Python standard library is called unittest . In this tutorial, you will be using unittest test cases and...
Read more >unittest — Unit testing framework — Python 3.11.1 ...
It checks for a specific response to a particular set of inputs. unittest provides a base class, TestCase , which may be used...
Read more >How do you generate dynamic (parameterized) unit tests in ...
I was looking for a simple, straight forward example how to parametrize test cases with py.test. Thank you very much! – timgeb. Mar...
Read more >Testing Python in Visual Studio Code
A unit is a specific piece of code to be tested, such as a function or a class. Unit tests are then other...
Read more >How To Use unittest to Write a Test Case for a Function in ...
In this tutorial, you will use Python's unittest module to write a test ... Let's expand on our earlier example, and add a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, will make a PR once this issue is closed.
Working on
test_parallel_coordinate.py