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"
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"
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"