saltstack / salt-ext-modules-vmware

Salt Extension Modules for VMware
Apache License 2.0
20 stars 36 forks source link

[TECH DEBT] Use/wrap existing fake_service_instance #346

Open waynew opened 1 year ago

waynew commented 1 year ago
          That makes sense - I don't think it's worth blocking this PR over, but I'll go ahead and create an issue to track this. You can extend fixtures like:
@pytest.fixture
def custom_si(fake_service_instance):
    ...  # whatever changes you need to make
    yield fake_service_instance   # typically yield, unless the result is static, like `return 42` or a dictionary or something

I'll go ahead and create an issue from this to track efforts

_Originally posted by @waynew in https://github.com/saltstack/salt-ext-modules-vmware/pull/333#discussion_r1069797817_

waynew commented 1 year ago

@zruzhinov