async def test_train_docker_and_docs_configs( config_file: Text, monkeypatch: MonkeyPatch ): monkeypatch.setattr(autoconfig, "_dump_config", Mock()) importer = RasaFileImporter(config_file=config_file) imported_config = importer.get_config() loaded_config = config.load(imported_config) assert len(loaded_config.component_names) > 1 assert loaded_config.language == imported_config["language"]
def test_rasa_file_importer_with_invalid_config(): importer = RasaFileImporter(config_file="invalid path") actual = importer.get_config() assert actual == {}