mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 19:32:26 +02:00
chore: regroup all the tests in the test
subfolder.
This commit is contained in:
parent
447fd88026
commit
5e5a462e45
8 changed files with 11 additions and 13 deletions
0
la_chariotte/tests/__init__.py
Normal file
0
la_chariotte/tests/__init__.py
Normal file
|
@ -19,7 +19,7 @@ def test_send_order_confirmation_mail(mailoutbox, simple_grouped_order, client):
|
|||
"code": simple_grouped_order.code,
|
||||
},
|
||||
)
|
||||
response = client.post(
|
||||
client.post(
|
||||
order_url,
|
||||
{
|
||||
f"quantity_{item.pk}": [4, 0],
|
|
@ -1,7 +1,7 @@
|
|||
import pytest
|
||||
from django.urls import reverse
|
||||
|
||||
from la_chariotte.order.tests.utils import create_grouped_order
|
||||
from .utils import create_grouped_order
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
|
@ -6,7 +6,8 @@ from django.urls import reverse
|
|||
from django.utils import timezone
|
||||
|
||||
from la_chariotte.order.models import GroupedOrder, Item
|
||||
from la_chariotte.order.tests.utils import create_grouped_order
|
||||
|
||||
from .utils import create_grouped_order
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
|
@ -7,13 +7,11 @@ from django.contrib import auth
|
|||
from django.forms.utils import to_current_timezone
|
||||
from django.urls import reverse
|
||||
from django.utils import timezone
|
||||
from icalendar import Calendar, vText
|
||||
from icalendar import Calendar
|
||||
|
||||
from la_chariotte.order import models
|
||||
from la_chariotte.order.tests.utils import (
|
||||
create_grouped_order,
|
||||
order_items_in_grouped_order,
|
||||
)
|
||||
|
||||
from .utils import create_grouped_order, order_items_in_grouped_order
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
|
@ -3,7 +3,8 @@ from django.contrib import auth
|
|||
from django.urls import reverse
|
||||
|
||||
from la_chariotte.order import models
|
||||
from la_chariotte.order.tests.utils import create_grouped_order
|
||||
|
||||
from .utils import create_grouped_order
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
|
@ -3,10 +3,8 @@ from django.contrib import auth
|
|||
from django.urls import reverse
|
||||
|
||||
from la_chariotte.order import models
|
||||
from la_chariotte.order.tests.utils import (
|
||||
create_grouped_order,
|
||||
order_items_in_grouped_order,
|
||||
)
|
||||
|
||||
from .utils import create_grouped_order, order_items_in_grouped_order
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
Loading…
Reference in a new issue