Merge pull request #3923 from kad-link/ci/windows-smoke

CI: add dev-only Windows smoke workflow
This commit is contained in:
Sarah Hoffmann
2026-02-16 09:27:23 +01:00
committed by GitHub
5 changed files with 164 additions and 3 deletions

View File

@@ -200,14 +200,15 @@ def test_get_path_empty(make_config):
assert not config.get_path('TOKENIZER_CONFIG')
def test_get_path_absolute(make_config, monkeypatch):
def test_get_path_absolute(make_config, monkeypatch, tmp_path):
config = make_config()
monkeypatch.setenv('NOMINATIM_FOOBAR', '/dont/care')
p = (tmp_path / "does_not_exist").resolve()
monkeypatch.setenv('NOMINATIM_FOOBAR', str(p))
result = config.get_path('FOOBAR')
assert isinstance(result, Path)
assert str(result) == '/dont/care'
assert str(result) == str(p)
def test_get_path_relative(make_config, monkeypatch, tmp_path):

View File

@@ -6,8 +6,12 @@
# For a full list of authors see the git log.
import itertools
import sys
import asyncio
from pathlib import Path
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
import psycopg
from psycopg import sql as pysql
import pytest