Filter letter rates by post_class in get_rate

Also adjust existing tests.
This commit is contained in:
Pea Tyczynska
2018-09-14 17:52:16 +01:00
parent 8b410e8876
commit b3191dbc2a
4 changed files with 18 additions and 10 deletions

View File

@@ -9,11 +9,12 @@ revision = '0226_new_letter_rates'
down_revision = '0225_another_letter_org'
import uuid
import pytz
from datetime import datetime
from alembic import op
start = datetime(2018, 10, 1, 0, 0, tzinfo=timezone.utc)
start = datetime(2018, 10, 1, 0, 0, tzinfo=pytz.utc)
NEW_RATES = [
(uuid.uuid4(), start, 1, 0.30, True, 'second'),