chore: apply flake8-pytest-style linter rules (#8307)

This commit is contained in:
Bowen Liang 2024-09-12 18:09:16 +08:00 committed by GitHub
commit 8815511ccb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 23 deletions

View file

@ -9,7 +9,8 @@ def test_loading_subclass_from_source():
module = load_single_subclass_from_source(
module_name="ChildClass", script_path=os.path.join(current_path, "child_class.py"), parent_type=ParentClass
)
assert module and module.__name__ == "ChildClass"
assert module
assert module.__name__ == "ChildClass"
def test_load_import_module_from_source():
@ -17,7 +18,8 @@ def test_load_import_module_from_source():
module = import_module_from_source(
module_name="ChildClass", py_file_path=os.path.join(current_path, "child_class.py")
)
assert module and module.__name__ == "ChildClass"
assert module
assert module.__name__ == "ChildClass"
def test_lazy_loading_subclass_from_source():