Compare commits

..

9 commits

Author SHA1 Message Date
Yohan Boniface
30d9e43cd4
Add logo for social_core.backends.keycloak.KeycloakOAuth2 (#2258)
Some checks are pending
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
Test & Docs / docs (push) Waiting to run
2024-12-02 13:14:06 +01:00
Yohan Boniface
64f0926e2d
chore: bump mkdocs-material from 9.5.44 to 9.5.47 (#2318) 2024-12-02 13:11:27 +01:00
Yohan Boniface
3aa0c8fc82
chore: bump ruff from 0.7.4 to 0.8.1 (#2319) 2024-12-02 13:11:10 +01:00
dependabot[bot]
9e2b207dfd
chore: bump ruff from 0.7.4 to 0.8.1
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.4 to 0.8.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.7.4...0.8.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-02 11:56:38 +00:00
dependabot[bot]
998bf87a0b
chore: bump mkdocs-material from 9.5.44 to 9.5.47
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.44 to 9.5.47.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.44...9.5.47)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-02 11:55:48 +00:00
Yohan Boniface
401efc037d
chore: fix failing test (#2317) 2024-12-02 12:54:12 +01:00
Yohan Boniface
471de78ab3 chore: fix failing test 2024-12-02 12:46:09 +01:00
Yohan Boniface
b7adf33237 chore: add missing doc file 2024-12-02 11:16:58 +01:00
Thomas Legay
4bd7bd7d48 Add logo for social_core.backends.keycloak.KeycloakOAuth2 2024-11-12 23:58:30 +01:00
10 changed files with 27 additions and 8 deletions

View file

@ -1,5 +1,5 @@
# Force rtfd to use a recent version of mkdocs
mkdocs==1.6.1
pymdown-extensions==10.12
mkdocs-material==9.5.44
mkdocs-material==9.5.47
mkdocs-static-i18n==1.2.3

7
docs/deploy/helm.md Normal file
View file

@ -0,0 +1,7 @@
# Helm
To deploy using helm:
helm install <my-release> oci://registry-1.docker.io/umap/umap
Helm chart is pushed here: https://hub.docker.com/repository/docker/umap/umap/tags

View file

@ -1,5 +1,5 @@
# Force rtfd to use a recent version of mkdocs
mkdocs==1.6.1
pymdown-extensions==10.12
mkdocs-material==9.5.44
mkdocs-material==9.5.47
mkdocs-static-i18n==1.2.3

View file

@ -44,10 +44,10 @@ dependencies = [
[project.optional-dependencies]
dev = [
"hatch==1.13.0",
"ruff==0.7.4",
"ruff==0.8.1",
"djlint==1.36.1",
"mkdocs==1.6.1",
"mkdocs-material==9.5.44",
"mkdocs-material==9.5.47",
"mkdocs-static-i18n==1.2.3",
"vermin==1.6.0",
"pymdown-extensions==10.12",

View file

@ -65,7 +65,9 @@ body.login header {
.login-grid .login-openstreetmap-oauth2 {
background-image: url("./openstreetmap.png");
}
.login-grid .login-keycloak {
background-image: url("./keycloak.png");
}
/* **************************** */
/* home */

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -1,6 +1,7 @@
import copy
import json
import uuid
from pathlib import Path
import factory
from django.contrib.auth import get_user_model
@ -41,7 +42,7 @@ class LicenceFactory(factory.django.DjangoModelFactory):
class TileLayerFactory(factory.django.DjangoModelFactory):
name = "Test zoom layer"
url_template = "http://{s}.test.org/{z}/{x}/{y}.png"
url_template = "https://{s}.test.org/osmfr/{z}/{x}/{y}.png"
attribution = "Test layer attribution"
class Meta:
@ -152,3 +153,8 @@ def login_required(response):
redirect_url = reverse("login")
assert j["login_required"] == redirect_url
return True
def mock_tiles(route):
path = Path(__file__).parent / "fixtures/empty_tile.png"
route.fulfill(path=path)

BIN
umap/tests/fixtures/empty_tile.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

View file

@ -6,6 +6,8 @@ from pathlib import Path
import pytest
from playwright.sync_api import expect
from ..base import mock_tiles
@pytest.fixture(scope="session")
def browser_context_args(browser_context_args):
@ -23,7 +25,7 @@ def set_timeout(context):
@pytest.fixture(autouse=True)
def mock_osm_tiles(page):
if not bool(os.environ.get("PWDEBUG", False)):
page.route("*/**/osmfr/**", lambda route: route.fulfill())
page.route("*/**/osmfr/**", mock_tiles)
@pytest.fixture

View file

@ -1,5 +1,4 @@
import json
import os
import platform
import re
from pathlib import Path
@ -10,6 +9,7 @@ from playwright.sync_api import expect
from umap.models import DataLayer
from ..base import mock_tiles
from .helpers import save_and_get_json
pytestmark = pytest.mark.django_db
@ -72,6 +72,8 @@ def test_umap_import_from_file(live_server, tilelayer, page):
def test_umap_import_from_textarea(live_server, tilelayer, page, settings):
page.route("https://tile.openstreetmap.fr/hot/**", mock_tiles)
settings.UMAP_ALLOW_ANONYMOUS = True
page.goto(f"{live_server.url}/map/new/")
page.get_by_role("button", name="Open browser").click()