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 \
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 \

@ -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']

Loading…
Cancel
Save