mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-07-02 10:34:27 +00:00
ui: add v9.6 assets, update misc resources (#1398)
* ui: add v9.6 assets, update misc resources * ui: use symlink for favicon * refactor: simplify icon switching methods in media_player.py * ui: update about window * fix(ui): apply dpi scaling to about window background * fix(ui): fix image symlinks * fix(ui): fix dark media player buttons in light theme * ui: use TagStudio icon in update notification instead of warning
This commit is contained in:
committed by
GitHub
parent
a3477722b3
commit
0f319985c4
@@ -13,6 +13,6 @@ logger = structlog.get_logger()
|
||||
def test_get():
|
||||
rm = ResourceManager()
|
||||
|
||||
for res in rm._map: # pyright: ignore[reportPrivateUsage]
|
||||
for res in rm._map:
|
||||
assert rm.get(res), f"Could not get resource '{res}'"
|
||||
assert unwrap(rm.get_path(res)).exists(), f"Filepath for resource '{res}' does not exist"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
import string
|
||||
import warnings
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
@@ -57,6 +58,8 @@ def test_format_key_validity(translation_filename: str):
|
||||
def test_for_unnecessary_translations(translation_filename: str):
|
||||
default_translation = load_translation("en.json")
|
||||
translation = load_translation(translation_filename)
|
||||
assert set(default_translation.keys()).issuperset(translation.keys()), (
|
||||
f"Translation {translation_filename} has unnecessary keys ({set(translation.keys()).difference(default_translation.keys())})" # noqa: E501
|
||||
)
|
||||
if not set(default_translation.keys()).issuperset(translation.keys()):
|
||||
message = str(
|
||||
f"Translation {translation_filename} has unnecessary keys ({set(translation.keys()).difference(default_translation.keys())})", # noqa: E501
|
||||
)
|
||||
warnings.warn(message, stacklevel=1)
|
||||
|
||||
Reference in New Issue
Block a user