class_docstr: Check functionality and edge cases of `report_results` helper interface.
class_docstr_tok: ["Check","functionality","and","edge","cases","of","`","report_results","`","helper","interface","."]
docstr: Test without having set the appropriate environmental variable.
  
  Then: It should print `data` parameter instead to stdout.
docstr_tok: ["Test","without","having","set","the","appropriate","environmental","variable",".","Then",":","It","should","print","`","data","`","parameter","instead","to","stdout","."]
code: def test_with_no_env(self, monkeypatch, capsys, data):
      """Test without having set the appropriate environmental variable.
  
      Then: It should print `data` parameter instead to stdout.
      """
      monkeypatch.delenv("ORION_RESULTS_PATH", raising=False)
      reloaded_client = reload(cli)
  
      assert reloaded_client.IS_ORION_ON is False
      assert reloaded_client.RESULTS_FILENAME is None
      assert reloaded_client._HAS_REPORTED_RESULTS is False
  
      reloaded_client.report_results(data)
      out, err = capsys.readouterr()
      assert reloaded_client._HAS_REPORTED_RESULTS is True
      assert out == data + "\n"
      assert err == ""
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 1 for calling the TestReportResults obj's underlying member method code with example usage: obj.test_with_no_env(monkeypatch, capsys, data) without return types