ref: Auto-fix ruff rules in tests (#4154)
This commit is contained in:
parent
51b3909d60
commit
45c8f98692
80 changed files with 359 additions and 456 deletions
|
|
@ -7,13 +7,13 @@ from pydantic import BaseModel
|
|||
|
||||
# Dummy classes for testing purposes
|
||||
class Parent(BaseModel):
|
||||
"""Parent Class"""
|
||||
"""Parent Class."""
|
||||
|
||||
parent_field: str
|
||||
|
||||
|
||||
class Child(Parent):
|
||||
"""Child Class"""
|
||||
"""Child Class."""
|
||||
|
||||
child_field: int
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ def test_get_default_factory():
|
|||
return "default_value"
|
||||
|
||||
# Add dummy_function to your_module
|
||||
setattr(importlib.import_module(module_name), "dummy_function", dummy_function)
|
||||
importlib.import_module(module_name).dummy_function = dummy_function
|
||||
|
||||
default_value = get_default_factory(module_name, function_repr)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue