tests/functional/configuration/test_all_options.py
def check_local_config(self, tmp_path, conf_file, monkeypatch):
        """Check that local configuration overrides global/envvars configuration"""
        self._mock_consumer(monkeypatch)
        self._mock_producer(monkeypatch)
        self._mock_workon(monkeypatch)

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

        self._check_consumer(self.local["worker"])
        self._check_producer(self.local["worker"])
        self._check_workon(self.local["worker"])
Check that local configuration overrides global/envvars configuration
Check that local configuration overrides global/envvars configuration
Check that local configuration overrides global / envvars configuration
def check_local_config(self, tmp_path, conf_file, monkeypatch):
        self._mock_consumer(monkeypatch)
        self._mock_producer(monkeypatch)
        self._mock_workon(monkeypatch)
        command = f"hunt --exp-max-trials 0 -n test -c {conf_file} python {script} -x~uniform(0,1)"
        orion.core.cli.main(command.split(" "))
        self._check_consumer(self.local["worker"])
        self._check_producer(self.local["worker"])
        self._check_workon(self.local["worker"])
def check_local_config ( self , tmp_path , conf_file , monkeypatch ) : self . _mock_consumer ( monkeypatch ) self . _mock_producer ( monkeypatch ) self . _mock_workon ( monkeypatch ) command = f"hunt --exp-max-trials 0 -n test -c {conf_file} python {script} -x~uniform(0,1)" orion . core . cli . main ( command . split ( " " ) ) self . _check_consumer ( self . local [ "worker" ] ) self . _check_producer ( self . local [ "worker" ] ) self . _check_workon ( self . local [ "worker" ] )
Check that local configuration overrides global/envvars configuration
Check that local configuration overrides global / envvars configuration
"""Check that local configuration overrides global/envvars configuration"""
self
tmp_path
conf_file
monkeypatch