From f30fcdcd9dcff44b4700a2c87c60a426c54d3ae9 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 7 Jan 2026 09:38:49 +0100 Subject: [PATCH] BDD: make sure randomly generated names always contain a letter --- test/bdd/utils/place_inserter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/bdd/utils/place_inserter.py b/test/bdd/utils/place_inserter.py index 086693f4..f0f17e0f 100644 --- a/test/bdd/utils/place_inserter.py +++ b/test/bdd/utils/place_inserter.py @@ -2,7 +2,7 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2025 by the Nominatim developer community. +# Copyright (C) 2026 by the Nominatim developer community. # For a full list of authors see the git log. """ Helper classes for filling the place table. @@ -35,7 +35,8 @@ class PlaceColumn: self._add_hstore( 'name', 'name', - ''.join(random.choices(string.printable, k=random.randrange(30))), + ''.join(random.choices(string.ascii_uppercase) + + random.choices(string.printable, k=random.randrange(30))), ) return self -- 2.39.5