summaryrefslogtreecommitdiffstats
path: root/etc/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etc/testing/_providers.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/testing/_providers.py b/etc/testing/_providers.py
index ec0e0271..0194318c 100644
--- a/etc/testing/_providers.py
+++ b/etc/testing/_providers.py
@@ -35,8 +35,14 @@ def main():
def get_providers() -> list[type[BaseProvider]]:
providers = dir(Provider)
providers = [getattr(Provider, provider) for provider in providers if provider != "RetryProvider"]
- providers = [provider for provider in providers if isinstance(provider, type)]
- return [provider for provider in providers if issubclass(provider, BaseProvider)]
+ providers = [provider for provider in providers if isinstance(provider, type) and hasattr(provider, "url")]
+ return [
+ provider
+ for provider in providers
+ if issubclass(provider, BaseProvider)
+ and provider.__name__ not in dir(Provider.deprecated)
+ and provider.__name__ not in dir(Provider.unfinished)
+ ]
def create_response(_provider: type[BaseProvider]) -> str: