Rename the urban_meal_delivery package into velofy
This commit is contained in:
parent
a39d636876
commit
4855209392
20 changed files with 219 additions and 221 deletions
|
|
@ -7,7 +7,7 @@ import factory
|
|||
from factory import alchemy
|
||||
|
||||
from tests.db.fake_data.factories import utils
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class AddressFactory(alchemy.SQLAlchemyModelFactory):
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import factory
|
|||
from factory import alchemy
|
||||
|
||||
from tests.db.fake_data.factories import utils
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class CourierFactory(alchemy.SQLAlchemyModelFactory):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import factory
|
||||
from factory import alchemy
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class CustomerFactory(alchemy.SQLAlchemyModelFactory):
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from geopy import distance
|
|||
|
||||
from tests import config as test_config
|
||||
from tests.db.fake_data.factories import utils
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import factory
|
|||
from factory import alchemy
|
||||
|
||||
from tests.db.fake_data.factories import utils
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class ReplayedOrderFactory(alchemy.SQLAlchemyModelFactory):
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import faker
|
|||
from factory import alchemy
|
||||
|
||||
from tests.db.fake_data.factories import utils
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
_restaurant_names = faker.Faker()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import sqlalchemy as sqla
|
|||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from tests import config as test_config
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import pytest
|
|||
import sqlalchemy as sqla
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from urban_meal_delivery.db import utils
|
||||
from velofy import db
|
||||
from velofy.db import utils
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import sqlalchemy as sqla
|
|||
from geopy import distance
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from urban_meal_delivery.db import utils
|
||||
from velofy import db
|
||||
from velofy.db import utils
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Implementation notes:
|
||||
The test suite has 100% coverage without the test cases in this module.
|
||||
That is so as the `AddressPixelAssociation` model is imported into the
|
||||
`urban_meal_delivery.db` namespace so that the `Address` and `Pixel` models
|
||||
`velofy.db` namespace so that the `Address` and `Pixel` models
|
||||
can find it upon initialization. Yet, none of the other unit tests run any
|
||||
code associated with it. Therefore, we test it here as non-e2e tests and do
|
||||
not measure its coverage.
|
||||
|
|
@ -13,7 +13,7 @@ import pytest
|
|||
import sqlalchemy as sqla
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from urban_meal_delivery.db import utils
|
||||
from velofy import db
|
||||
from velofy.db import utils
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import pytest
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import sqlalchemy as sqla
|
|||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from tests import config as test_config
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
MODEL = 'hets'
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import pytest
|
|||
import sqlalchemy as sqla
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import sqlalchemy as sqla
|
|||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from tests import config as test_config
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import pytest
|
|||
import sqlalchemy as sqla
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import pytest
|
|||
import sqlalchemy as sqla
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from urban_meal_delivery import db
|
||||
from velofy import db
|
||||
|
||||
|
||||
class TestSpecialMethods:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from urban_meal_delivery.db import utils
|
||||
from velofy.db import utils
|
||||
|
||||
|
||||
# All tests take place in Paris.
|
||||
|
|
|
|||
Loading…
Reference in a new issue