class_docstr: Test utils.py.
class_docstr_tok: ["Test","utils.py","."]
docstr: Test function _get_round_setting_for.
docstr_tok: ["Test","function","_get_round_setting_for","."]
code: def test_get_round_setting_for(self):
      """Test function _get_round_setting_for."""
      # set rounding options (keeping original options dict to restore after)
      old_opts = pingouin.options.copy()
      pingouin.options.clear()
      pingouin.options["round"] = 4
      pingouin.options["round.cell.[row0]x[Values]"] = None
      pingouin.options["round.column.Values"] = 3
      pingouin.options["round.row.row1"] = 2
      pingouin.options["round.cell.[row3]x[Values2]"] = 0
  
      assert _get_round_setting_for("row0", "Values") is None
      assert _get_round_setting_for("row1", "Values") == 3
      assert _get_round_setting_for("row1", "Values2") == 2
      assert _get_round_setting_for("row3", "Values2") == 0
      assert _get_round_setting_for("row2", "Values2") == 4  # default
  
      # restore old options
      pingouin.options.update(old_opts)
  
file_path: pingouin/pingouin/tests/test_utils.py
imports: import pandas
  import numpy
  import pytest
  import pingouin
  from unittest import TestCase
  from pingouin.utils import print_table, _postprocess_dataframe, _get_round_setting_for, _perm_pval, _check_eftype, _check_dataframe, remove_na, _flatten_list, _is_sklearn_installed, _is_statsmodels_installed, _is_mpmath_installed
label_desc: Use image node_id 3 for calling the TestUtils obj's underlying member method code with example usage: obj.test_get_round_setting_for() without return types