Compare commits

..

7 Commits

Author SHA1 Message Date
187187a8a2 Fixed tests workflow
All checks were successful
Tests / test (3.10) (push) Successful in 1m0s
Tests / test (3.11) (push) Successful in 1m2s
Tests / test (3.8) (push) Successful in 1m1s
Tests / test (3.9) (push) Successful in 1m30s
2023-08-07 11:40:50 +02:00
8d27f43cce Updated workflow 2023-08-07 11:24:48 +02:00
f181552fb8 Updated to 2.0.0 2023-08-07 11:21:49 +02:00
32b1acf4aa Updated to 0.2.2
All checks were successful
Tests / test (3.10) (push) Successful in 1m4s
Tests / test (3.11) (push) Successful in 1m13s
Tests / test (3.8) (push) Successful in 1m9s
Tests / test (3.9) (push) Successful in 1m1s
2023-08-06 22:00:14 +02:00
1c1c71d40b Fixed PyroClient.bot_locale 2023-08-06 21:59:48 +02:00
65838450ee Fixed typing of Dict
All checks were successful
Tests / test (3.10) (push) Successful in 1m9s
Tests / test (3.11) (push) Successful in 1m52s
Tests / test (3.8) (push) Successful in 1m23s
Tests / test (3.9) (push) Successful in 1m25s
2023-08-06 21:22:24 +02:00
3f39e07d04 Added coverage display 2023-08-06 21:21:55 +02:00
5 changed files with 13 additions and 8 deletions

View File

@@ -1,8 +1,12 @@
name: Tests
on:
- push
- pull_request
push:
branches:
- main
tags-ignore:
- v*
pull_request:
jobs:
test:

View File

@@ -1,4 +1,4 @@
__version__ = "0.2.1"
__version__ = "2.0.0"
__license__ = "GPL3"
__author__ = "Profitroll"

View File

@@ -102,7 +102,8 @@ class PyroClient(Client):
self.start_time: float = 0
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.locales: dict = self.bot_locale.locales

View File

@@ -1,4 +1,4 @@
from typing import Any, List
from typing import Any, Dict, List
import pytest
@@ -27,7 +27,7 @@ from libbot import sync
],
)
def test_nested_set_valid(
target: dict[str, Any],
target: Dict[str, Any],
value: Any,
path: List[str],
create_missing: bool,
@@ -51,7 +51,7 @@ def test_nested_set_valid(
],
)
def test_nested_set_invalid(
target: dict[str, Any],
target: Dict[str, Any],
value: Any,
path: List[str],
create_missing: bool,

View File

@@ -20,4 +20,4 @@ deps =
-r{toxinidir}/requirements/pyrogram.txt
-r{toxinidir}/requirements/speed.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov=libbot