Esempio n. 1
0
def test__fetch_mutation_config_emptyDict_returnsDefaultSettings():
    mutation_config = {}
    config = Config()

    config._fetch_mutation_config(mutation_config)

    assert config.mutation_method == "normalization" and config.mutation_rate == 0.0
Esempio n. 2
0
def test__fetch_mutation_config_validData_fetchesValidVariables():
    mutation_config = {"method": "gene_creation", "rate": 0.1}
    config = Config()

    config._fetch_mutation_config(mutation_config)

    assert config.mutation_method == "gene_creation" and config.mutation_rate == 0.1