Privatize APIs by renaming or removing them from __all__ (#6021)

This commit is contained in:
Jakub Kuczys
2023-04-17 23:44:33 +02:00
committed by GitHub
parent eafbb06756
commit f051eae92d
126 changed files with 508 additions and 157 deletions

View File

@@ -6,7 +6,7 @@ import weakref
import pytest
from redbot.core import Config
from redbot.core.bot import Red
from redbot.core import config as config_module, drivers
from redbot.core import config as config_module, _drivers
__all__ = [
"override_data_path",
@@ -50,7 +50,7 @@ def driver(tmpdir_factory):
rand = str(uuid.uuid4())
path = Path(str(tmpdir_factory.mktemp(rand)))
return drivers.get_driver("PyTest", str(random.randint(1, 999999)), data_path_override=path)
return _drivers.get_driver("PyTest", str(random.randint(1, 999999)), data_path_override=path)
@pytest.fixture()
@@ -154,7 +154,7 @@ def ctx(empty_member, empty_channel, red):
# region Red Mock
@pytest.fixture()
def red(config_fr):
from redbot.core.cli import parse_cli_flags
from redbot.core._cli import parse_cli_flags
cli_flags = parse_cli_flags(["ignore_me"])