question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add more test cases in `optuna/visualization/matplotlib/*.py`

See original GitHub issue

Motivation

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
01-vyomcommented, Jul 16, 2021

Thank you for sharing that! In my understanding, both get_yaxis and get_yaxis don’t show any warning message now, so it is okay as in Optuna codebase. But following matplotlib’s document is supposed to be great for dev-members or contributors. So please feel free to send a PR if you want!

Ok, will make a PR once this issue is closed.

1reaction
01-vyomcommented, Jul 2, 2021

Working on test_parallel_coordinate.py

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found