remove unused codes

This commit is contained in:
venusbb
2017-10-25 12:50:13 +01:00
parent ae6b32d8e2
commit e8f659837a
6 changed files with 16 additions and 49 deletions

View File

@@ -8,6 +8,7 @@ from app.dao.annual_billing_dao import (
def test_sample_service_has_free_sms_fragment_limit(notify_db_session, sample_service):
# when sample_service was created, it automatically create an entry in the annual_billing table
free_limit = dao_get_free_sms_fragment_limit_for_year(sample_service.id, get_current_financial_year_start_year())
assert free_limit.free_sms_fragment_limit == 250000
@@ -16,7 +17,7 @@ def test_sample_service_has_free_sms_fragment_limit(notify_db_session, sample_se
def test_dao_update_free_sms_fragment_limit(notify_db_session, sample_service):
year = 2016
year = 1999
old_limit = 1000
new_limit = 9999

View File

@@ -171,8 +171,7 @@ def test_should_remove_user_from_service(sample_user):
email_from="email_from",
message_limit=1000,
restricted=False,
created_by=sample_user,
free_sms_fragment_limit=9999)
created_by=sample_user)
dao_create_service(service, sample_user)
new_user = User(
name='Test User',