Rename the urban_meal_delivery package into velofy

This commit is contained in:
Alexander Hess 2026-11-23 18:06:53 +01:00
commit 4855209392
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
2 changed files with 219 additions and 221 deletions

View file

@ -1,10 +1,10 @@
"""Integration test for the `urban_meal_delivery.console.gridify` module."""
"""Integration test for the `velofy.console.gridify` module."""
import pytest
import urban_meal_delivery
from urban_meal_delivery import db
from urban_meal_delivery.console import gridify
import velofy
from velofy import db
from velofy.console import gridify
@pytest.mark.db
@ -38,7 +38,7 @@ def test_two_pixels_with_two_addresses( # noqa:WPS211
side_length = max(city.total_x // 2, city.total_y // 2) + 1
# Hack the configuration regarding the grids to be created.
monkeypatch.setattr(urban_meal_delivery.config, 'GRID_SIDE_LENGTHS', [side_length])
monkeypatch.setattr(velofy.config, 'GRID_SIDE_LENGTHS', [side_length])
result = cli.invoke(gridify.gridify)

View file

@ -3,7 +3,7 @@
import click
import pytest
from urban_meal_delivery.console import main
from velofy.console import main
class TestShowVersion:
@ -34,7 +34,7 @@ class TestShowVersion:
def test_final_version(self, capsys, ctx, monkeypatch):
"""For final versions, NO "development" warning is emitted."""
version = '1.2.3'
monkeypatch.setattr(main.urban_meal_delivery, '__version__', version)
monkeypatch.setattr(main.velofy, '__version__', version)
with pytest.raises(click.exceptions.Exit):
main.show_version(ctx, _param='discarded', value=True)
@ -46,7 +46,7 @@ class TestShowVersion:
def test_develop_version(self, capsys, ctx, monkeypatch):
"""For develop versions, a warning thereof is emitted."""
version = '1.2.3.dev0'
monkeypatch.setattr(main.urban_meal_delivery, '__version__', version)
monkeypatch.setattr(main.velofy, '__version__', version)
with pytest.raises(click.exceptions.Exit):
main.show_version(ctx, _param='discarded', value=True)
@ -79,7 +79,7 @@ class TestCLIWithoutCommand:
def test_final_version(self, cli, monkeypatch, option):
"""For final versions, NO "development" warning is emitted."""
version = '1.2.3'
monkeypatch.setattr(main.urban_meal_delivery, '__version__', version)
monkeypatch.setattr(main.velofy, '__version__', version)
result = cli.invoke(main.entry_point, option)
@ -91,7 +91,7 @@ class TestCLIWithoutCommand:
def test_develop_version(self, cli, monkeypatch, option):
"""For develop versions, a warning thereof is emitted."""
version = '1.2.3.dev0'
monkeypatch.setattr(main.urban_meal_delivery, '__version__', version)
monkeypatch.setattr(main.velofy, '__version__', version)
result = cli.invoke(main.entry_point, option)