Compare commits
7 Commits
c5fdd60d13
...
v2.0.0
Author | SHA1 | Date | |
---|---|---|---|
187187a8a2
|
|||
8d27f43cce
|
|||
f181552fb8
|
|||
32b1acf4aa
|
|||
1c1c71d40b
|
|||
65838450ee
|
|||
3f39e07d04
|
@@ -1,8 +1,12 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
- pull_request
|
branches:
|
||||||
|
- main
|
||||||
|
tags-ignore:
|
||||||
|
- v*
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
__version__ = "0.2.1"
|
__version__ = "2.0.0"
|
||||||
__license__ = "GPL3"
|
__license__ = "GPL3"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -102,7 +102,8 @@ class PyroClient(Client):
|
|||||||
self.start_time: float = 0
|
self.start_time: float = 0
|
||||||
|
|
||||||
self.bot_locale: BotLocale = BotLocale(
|
self.bot_locale: BotLocale = BotLocale(
|
||||||
(Path("locale") if locales_root is None else locales_root)
|
default_locale=self.config["locale"],
|
||||||
|
locales_root=(Path("locale") if locales_root is None else locales_root)
|
||||||
)
|
)
|
||||||
self.default_locale: str = self.bot_locale.default
|
self.default_locale: str = self.bot_locale.default
|
||||||
self.locales: dict = self.bot_locale.locales
|
self.locales: dict = self.bot_locale.locales
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, List
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ from libbot import sync
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_nested_set_valid(
|
def test_nested_set_valid(
|
||||||
target: dict[str, Any],
|
target: Dict[str, Any],
|
||||||
value: Any,
|
value: Any,
|
||||||
path: List[str],
|
path: List[str],
|
||||||
create_missing: bool,
|
create_missing: bool,
|
||||||
@@ -51,7 +51,7 @@ def test_nested_set_valid(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_nested_set_invalid(
|
def test_nested_set_invalid(
|
||||||
target: dict[str, Any],
|
target: Dict[str, Any],
|
||||||
value: Any,
|
value: Any,
|
||||||
path: List[str],
|
path: List[str],
|
||||||
create_missing: bool,
|
create_missing: bool,
|
||||||
|
Reference in New Issue
Block a user