mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-09-01 14:29:55 +00:00
optimize imports
This commit is contained in:
@ -2,7 +2,7 @@ import pytest
|
||||
|
||||
from pathlib import Path
|
||||
from pytest_mock import MockerFixture
|
||||
from unittest.mock import MagicMock, call as MockCall
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
from ahriman.application.application.application_packages import ApplicationPackages
|
||||
from ahriman.models.package import Package
|
||||
|
@ -140,8 +140,7 @@ def test_configuration_create_devtools_mirror(args: argparse.Namespace, reposito
|
||||
"""
|
||||
must create configuration for the devtools with mirror set explicitly
|
||||
"""
|
||||
def get(section: str, key: str, *args: Any, **kwargs: Any) -> Any:
|
||||
del args
|
||||
def get(section: str, key: str, **kwargs: Any) -> Any:
|
||||
if section == "core" and key == "Include":
|
||||
return str(Setup.MIRRORLIST_PATH)
|
||||
return kwargs["fallback"]
|
||||
|
Reference in New Issue
Block a user