Rename the urban_meal_delivery package into velofy
This commit is contained in:
parent
a39d636876
commit
4855209392
1 changed files with 219 additions and 221 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue