(tenants_fixture)
| 711 | |
| 712 | @pytest.fixture |
| 713 | def provider_groups_fixture(tenants_fixture): |
| 714 | tenant, *_ = tenants_fixture |
| 715 | pgroup1 = ProviderGroup.objects.create( |
| 716 | name="Group One", |
| 717 | tenant_id=tenant.id, |
| 718 | ) |
| 719 | pgroup2 = ProviderGroup.objects.create( |
| 720 | name="Group Two", |
| 721 | tenant_id=tenant.id, |
| 722 | ) |
| 723 | pgroup3 = ProviderGroup.objects.create( |
| 724 | name="Group Three", |
| 725 | tenant_id=tenant.id, |
| 726 | ) |
| 727 | |
| 728 | return pgroup1, pgroup2, pgroup3 |
| 729 | |
| 730 | |
| 731 | @pytest.fixture |