tests/functional/configuration/test_all_options.py
def check_global_config(self, tmp_path, monkeypatch):
        """Check that global configuration is set properly"""
        assert orion.core.config.to_dict()["worker"] == self.config["worker"]

        self._mock_consumer(monkeypatch)
        self._mock_producer(monkeypatch)
        self._mock_workon(monkeypatch)

        command = f"hunt --exp-max-trials 0 -n test python {script} -x~uniform(0,1)"
        orion.core.cli.main(command.split(" "))

        self._check_consumer(self.config["worker"])
        self._check_producer(self.config["worker"])
        self._check_workon(self.config["worker"])
Check that global configuration is set properly
Check that global configuration is set properly
Check that global configuration is set properly
def check_global_config(self, tmp_path, monkeypatch):
        assert orion.core.config.to_dict()["worker"] == self.config["worker"]
        self._mock_consumer(monkeypatch)
        self._mock_producer(monkeypatch)
        self._mock_workon(monkeypatch)
        command = f"hunt --exp-max-trials 0 -n test python {script} -x~uniform(0,1)"
        orion.core.cli.main(command.split(" "))
        self._check_consumer(self.config["worker"])
        self._check_producer(self.config["worker"])
        self._check_workon(self.config["worker"])
def check_global_config ( self , tmp_path , monkeypatch ) : assert orion . core . config . to_dict ( ) [ "worker" ] == self . config [ "worker" ] self . _mock_consumer ( monkeypatch ) self . _mock_producer ( monkeypatch ) self . _mock_workon ( monkeypatch ) command = f"hunt --exp-max-trials 0 -n test python {script} -x~uniform(0,1)" orion . core . cli . main ( command . split ( " " ) ) self . _check_consumer ( self . config [ "worker" ] ) self . _check_producer ( self . config [ "worker" ] ) self . _check_workon ( self . config [ "worker" ] )
Check that global configuration is set properly
Check that global configuration is set properly
"""Check that global configuration is set properly"""
self
tmp_path
monkeypatch