|
|
|
|
@ -1,9 +1,10 @@ |
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
import pytest |
|
|
|
|
from django.conf import settings |
|
|
|
|
|
|
|
|
|
from django.utils import timezone |
|
|
|
|
|
|
|
|
|
from commons.utils import get_site_url |
|
|
|
|
from commons.utils import get_site_url, get_owner_data, get_owner_bank |
|
|
|
|
from customer.utils import check_one_profile, check_confirm_bonus_to_user |
|
|
|
|
from customer.utils import get_display_message_for_bonus |
|
|
|
|
|
|
|
|
|
@ -77,3 +78,15 @@ def test_get_display_message_for_bonus_not_valid(count_day): |
|
|
|
|
def test_check_one_profile(profile): |
|
|
|
|
check_one_profile(profile, timezone.now(), manual=False) |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_owner_data(): |
|
|
|
|
result = get_owner_data() |
|
|
|
|
assert result is not None |
|
|
|
|
assert result['inn'] == settings.OWNER['INN'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_owner_bank(): |
|
|
|
|
result = get_owner_bank() |
|
|
|
|
assert result is not None |
|
|
|
|
assert result['bik'] == settings.OWNER['BIK'] |
|
|
|
|
|