From 7547ce372b5d0b17052302e576ddf4ff0f73fdf1 Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Sun, 9 Jul 2017 19:06:27 +0300 Subject: [PATCH] some change in dockerfile --- Dockerfile | 6 ++---- src/tests/test_utils.py | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a65ec5..a61f6fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,14 +28,11 @@ RUN apk update && apk add --update --no-cache --progress \ libxslt-dev \ libmagic \ ghostscript \ - postgresql-dev \ supervisor \ - libmemcached-dev \ cyrus-sasl-dev \ jpeg libpng freetype \ bash bash-completion \ gettext-dev \ - freetype-dev \ libtool \ mailcap \ libgomp \ @@ -48,6 +45,7 @@ RUN apk update && apk add --update --no-cache --progress \ musl-dev \ curl \ build-base \ + postgresql-dev \ ncurses-dev \ pcre-dev \ zlib-dev \ @@ -57,7 +55,7 @@ RUN apk update && apk add --update --no-cache --progress \ libwebp-dev \ libffi-dev \ ttf-freefont \ - font-bh-ttf \ + # font-bh-ttf \ python3-dev \ && python3 -m ensurepip \ diff --git a/src/tests/test_utils.py b/src/tests/test_utils.py index f7d6051..b6f264e 100644 --- a/src/tests/test_utils.py +++ b/src/tests/test_utils.py @@ -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']