Coverage for app/venv/lib/python3.14/site-packages/weblate/utils/compress.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 07:15 +0000

1# Copyright © Michal Čihař <michal@weblate.org> 

2# 

3# SPDX-License-Identifier: GPL-3.0-or-later 

4 

5from django.conf import settings 

6 

7from weblate.accounts.types import ThemeChoices 

8 

9 

10def offline_context(): 

11 for theme in ThemeChoices.values: 

12 for bidi in (True, False): 

13 for bootstrap_5 in (True, False): 

14 yield { 

15 "fonts_cdn_url": settings.FONTS_CDN_URL, 

16 "STATIC_URL": settings.STATIC_URL, 

17 "LANGUAGE_BIDI": bidi, 

18 "theme": theme, 

19 "bootstrap_5": bootstrap_5, 

20 }