mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-29 23:04:23 +00:00
Merge remote-tracking branch 'origin/master' into mintlify/cb114598
This commit is contained in:
commit
fa6eb9d5d9
29 files changed
+1561
-1315
No files matched your search
@@ -3212,21 +3212,18 @@ class YourProviderAPITestCase(APITestCase):
|
||||
|
||||
#### 2.6.1. Add your mocked provider to the tests
|
||||
|
||||
If needed, add your mocked provider to the tests config file so you can use it on the tests.
|
||||
If needed, add a named provider fixture or extend the provider factory defaults so tests can request only the provider they need.
|
||||
|
||||
**File:** `api/src/backend/conftest.py`
|
||||
|
||||
```python
|
||||
@pytest.fixture
|
||||
def providers_fixture(tenants_fixture):
|
||||
tenant, *_ = tenants_fixture
|
||||
providerX = Provider.objects.create(
|
||||
def your_provider(provider_factory):
|
||||
return provider_factory(
|
||||
provider="your_provider",
|
||||
uid="your_uid",
|
||||
alias="your_alias",
|
||||
tenant_id=tenant.id,
|
||||
)
|
||||
return provider1, provider2, provider3, ... providerX
|
||||
```
|
||||
|
||||
### 2.7. Compliance and Output Support
|
||||
|
||||
Reference in new issue
Block a user