Skip to content

Commit

Permalink
Merge 80d6e43 into cb5f232
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-alves committed Aug 20, 2018
2 parents cb5f232 + 80d6e43 commit 665acc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions tests/test_elastigroup.py
Expand Up @@ -4,11 +4,11 @@
from mock import MagicMock

from senza.spotinst import MissingSpotinstAccount
from senza.spotinst.components.elastigroup import (component_elastigroup, ELASTIGROUP_DEFAULT_PRODUCT,
ELASTIGROUP_DEFAULT_STRATEGY, resolve_account_id, SPOTINST_API_URL, extract_block_mappings,
extract_auto_scaling_rules, ensure_instance_monitoring, ensure_default_strategy, extract_autoscaling_capacity,
ensure_default_product, fill_standard_tags, extract_subnets, extract_load_balancer_name, extract_public_ips,
extract_image_id, extract_security_group_ids, extract_instance_types, extract_instance_profile)
from senza.components.elastigroup import (component_elastigroup, ELASTIGROUP_DEFAULT_PRODUCT,
ELASTIGROUP_DEFAULT_STRATEGY, resolve_account_id, SPOTINST_API_URL, extract_block_mappings,
extract_auto_scaling_rules, ensure_instance_monitoring, ensure_default_strategy, extract_autoscaling_capacity,
ensure_default_product, fill_standard_tags, extract_subnets, extract_load_balancer_name, extract_public_ips,
extract_image_id, extract_security_group_ids, extract_instance_types, extract_instance_profile)


def test_component_elastigroup_defaults(monkeypatch):
Expand Down Expand Up @@ -36,7 +36,7 @@ def test_component_elastigroup_defaults(monkeypatch):

mock_resolve_account_id = MagicMock()
mock_resolve_account_id.return_value = 'act-12345abcdef'
monkeypatch.setattr('senza.spotinst.components.elastigroup.resolve_account_id', mock_resolve_account_id)
monkeypatch.setattr('senza.components.elastigroup.resolve_account_id', mock_resolve_account_id)

mock_account_info = MagicMock()
mock_account_info.Region = "reg1"
Expand Down

0 comments on commit 665acc8

Please sign in to comment.