paperap.plugins.collect_test_data module
METADATA:
- File: collect_test_data.py
Project: paperap
- Created: 2025-03-04
Version: 0.0.10
Author: Jess Mann Email: jess@jmann.me
Copyright (c) 2025 Jess Mann
LAST MODIFIED:
2025-03-04 By Jess Mann
- class paperap.plugins.collect_test_data.SampleDataCollector(**kwargs)[source]
Bases:
PluginPlugin to collect test data from API responses.
- Parameters:
kwargs (
Any)
- name: ClassVar[str] = 'test_data_collector'
- description: ClassVar[str] = 'Collects sample data from API responses for testing purposes'
- version: ClassVar[str] = '0.0.3'
- fake: Faker
- test_dir: Path
- save_parsed_response(parsed_response, method, params, json_response, endpoint, **kwargs)[source]
Save the request data to a JSON file.
Connects to client.request:after signal.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'ignore', 'from_attributes': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].