mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Privatize APIs by renaming or removing them from __all__ (#6021)
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user