mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-09-02 14:16:45 +08:00
chore(release): prepare v2.4.5
This commit is contained in:
@@ -31,7 +31,11 @@ def _stub(name, **attrs):
|
||||
module = types.ModuleType(name)
|
||||
for key, value in attrs.items():
|
||||
setattr(module, key, value)
|
||||
sys.modules.setdefault(name, module)
|
||||
# Tests in this repository load downloader modules with lightweight app
|
||||
# stubs. Replace a previous test's stub instead of inheriting it; otherwise
|
||||
# a prior import can leave AudioDownloadResult as ``object`` and turn this
|
||||
# metadata-only test into a TypeError unrelated to the behavior under test.
|
||||
sys.modules[name] = module
|
||||
return module
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user