Changeset View
Changeset View
Standalone View
Standalone View
looper/tests/test_transactions.py
- This file was moved from tests/test_transactions.py.
| from typing import Any, Optional | from typing import Any, Optional | ||||
| from unittest import mock | from unittest import mock | ||||
| import requests.exceptions | import requests.exceptions | ||||
| from django.contrib.admin.models import LogEntry | from django.contrib.admin.models import LogEntry | ||||
| import looper.exceptions | import looper.exceptions | ||||
| from looper import admin_log | from looper import admin_log | ||||
| from tests.base import AbstractLooperTestCase | from .base import AbstractLooperTestCase | ||||
| class TransactionsTestCase(AbstractLooperTestCase): | class TransactionsTestCase(AbstractLooperTestCase): | ||||
| def test_transaction_create_from_subscription(self) -> None: | def test_transaction_create_from_subscription(self) -> None: | ||||
| subscription = self.create_subscription() | subscription = self.create_subscription() | ||||
| # We used to generate the initial order automatically, but no longer. | # We used to generate the initial order automatically, but no longer. | ||||
| order = subscription.latest_order() | order = subscription.latest_order() | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||