mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 22:39:43 -04:00
try to lazy init db another way
This commit is contained in:
@@ -2,7 +2,8 @@ import pytest
|
||||
from freezegun import freeze_time
|
||||
from sqlalchemy import select
|
||||
|
||||
from app import db
|
||||
import application
|
||||
from app import create_app, db
|
||||
from app.dao.annual_billing_dao import (
|
||||
dao_create_or_update_annual_billing_for_year,
|
||||
dao_get_all_free_sms_fragment_limit,
|
||||
@@ -18,6 +19,7 @@ from tests.app.db import create_annual_billing, create_service
|
||||
|
||||
|
||||
def test_dao_update_free_sms_fragment_limit(notify_db_session, sample_service):
|
||||
create_app(application)
|
||||
new_limit = 9999
|
||||
year = get_current_calendar_year_start_year()
|
||||
dao_create_or_update_annual_billing_for_year(sample_service.id, new_limit, year)
|
||||
|
||||
Reference in New Issue
Block a user