Updated to 0.2.1
This commit is contained in:
20
tests/conftest.py
Normal file
20
tests/conftest.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from libbot.i18n import BotLocale
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def location_config() -> Path:
|
||||
return Path("tests/config.json")
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def location_locale() -> Path:
|
||||
return Path("tests/data/locale/")
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def bot_locale(location_locale: Path) -> BotLocale:
|
||||
return BotLocale(locales_root=location_locale)
|
Reference in New Issue
Block a user