Exemplo n.º 1
0
def test_get_with_partial_credentials(partial_credentials):
    config_dict = EnvironmentConfig(partial_credentials).to_dict()

    assert len(config_dict.keys()) == 3
    assert config_dict["server_config"] == "password"
    assert config_dict["deployment"] == "develop"
    assert config_dict["user"] == "test"
Exemplo n.º 2
0
def test_get_with_credentials(with_credentials):
    config_dict = EnvironmentConfig(with_credentials).to_dict()

    assert len(config_dict.keys()) == 3
    assert config_dict["server_config"] == "password"
    assert config_dict["user"] == "test"
    assert config_dict["password_hash"] == "abcdef"
Exemplo n.º 3
0
def test_get_with_no_credentials(no_credentials):
    config_dict = EnvironmentConfig(no_credentials).to_dict()

    assert len(config_dict.keys()) == 2
    assert config_dict["server_config"] == "password"
    assert config_dict["deployment"] == "develop"