Compare commits
2 commits
0e88a8d13e
...
0a3837d1e1
Author | SHA1 | Date | |
---|---|---|---|
0a3837d1e1 | |||
25d4164bae |
2 changed files with 4 additions and 8 deletions
|
@ -2,7 +2,7 @@ name: Django Tests
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: ["*"]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
@ -31,4 +31,4 @@ jobs:
|
|||
-w /app \
|
||||
-e SECRET_KEY=dummysecretkey \
|
||||
website:test \
|
||||
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2'
|
||||
sh -c 'uv run --extra dev manage.py migrate --noinput && uv run --extra dev manage.py test hub.services.tests --verbosity=2'
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from decimal import Decimal
|
||||
from django.test import TestCase
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils import timezone
|
||||
from datetime import timedelta
|
||||
|
||||
|
@ -10,16 +9,12 @@ from ..models.services import Service
|
|||
from ..models.pricing import (
|
||||
ComputePlan,
|
||||
ComputePlanPrice,
|
||||
StoragePlan,
|
||||
StoragePlanPrice,
|
||||
ProgressiveDiscountModel,
|
||||
DiscountTier,
|
||||
VSHNAppCatPrice,
|
||||
VSHNAppCatBaseFee,
|
||||
VSHNAppCatUnitRate,
|
||||
VSHNAppCatAddon,
|
||||
VSHNAppCatAddonBaseFee,
|
||||
VSHNAppCatAddonUnitRate,
|
||||
ExternalPricePlans,
|
||||
)
|
||||
|
||||
|
@ -163,7 +158,8 @@ class PricingEdgeCasesTestCase(TestCase):
|
|||
)
|
||||
|
||||
# Should return None when price doesn't exist
|
||||
price = addon.get_price(Currency.CHF)
|
||||
# For BASE_FEE addons, service_level is required
|
||||
price = addon.get_price(Currency.CHF, service_level="standard")
|
||||
self.assertIsNone(price)
|
||||
|
||||
def test_compute_plan_with_validity_dates(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue