some change in dockerfile

prod
Dmitriy Shesterkin 9 years ago
parent ccfd4b9d7e
commit 7547ce372b
  1. 6
      Dockerfile
  2. 15
      src/tests/test_utils.py

@ -28,14 +28,11 @@ RUN apk update && apk add --update --no-cache --progress \
libxslt-dev \ libxslt-dev \
libmagic \ libmagic \
ghostscript \ ghostscript \
postgresql-dev \
supervisor \ supervisor \
libmemcached-dev \
cyrus-sasl-dev \ cyrus-sasl-dev \
jpeg libpng freetype \ jpeg libpng freetype \
bash bash-completion \ bash bash-completion \
gettext-dev \ gettext-dev \
freetype-dev \
libtool \ libtool \
mailcap \ mailcap \
libgomp \ libgomp \
@ -48,6 +45,7 @@ RUN apk update && apk add --update --no-cache --progress \
musl-dev \ musl-dev \
curl \ curl \
build-base \ build-base \
postgresql-dev \
ncurses-dev \ ncurses-dev \
pcre-dev \ pcre-dev \
zlib-dev \ zlib-dev \
@ -57,7 +55,7 @@ RUN apk update && apk add --update --no-cache --progress \
libwebp-dev \ libwebp-dev \
libffi-dev \ libffi-dev \
ttf-freefont \ ttf-freefont \
font-bh-ttf \ # font-bh-ttf \
python3-dev \ python3-dev \
&& python3 -m ensurepip \ && python3 -m ensurepip \

@ -1,9 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import pytest import pytest
from django.conf import settings
from django.utils import timezone 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 check_one_profile, check_confirm_bonus_to_user
from customer.utils import get_display_message_for_bonus 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): def test_check_one_profile(profile):
check_one_profile(profile, timezone.now(), manual=False) check_one_profile(profile, timezone.now(), manual=False)
pass 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']

Loading…
Cancel
Save