Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated travis conf, fixed tests

  • Loading branch information...
commit 8388e38b9b49cbd7ac2d4f7062ee7b52b1b186c6 1 parent 4272fe2
@ramusus authored
Showing with 9 additions and 8 deletions.
  1. +8 −8 .travis.yml
  2. +1 −0  vkontakte_api/tests.py
View
16 .travis.yml
@@ -9,15 +9,15 @@ before_script:
- mysql -e 'create database django;'
- psql -c 'create database django;' -U postgres
install:
- - if [[ $DB == mysql ]]; then pip install mysql-python --use-mirrors; fi
- - if [[ $DB == postgres ]]; then pip install psycopg2 --use-mirrors; fi
+ - if [[ $DB == mysql ]]; then pip install mysql-python; fi
+ - if [[ $DB == postgres ]]; then pip install psycopg2; fi
- DJANGO_VER=$(./travis_django_version.py $DJANGO)
- - pip install $DJANGO_VER --use-mirrors
- - pip install simplejson --use-mirrors
- - pip install factory_boy --use-mirrors
- - pip install coveralls --use-mirrors
- - pip install mock --use-mirrors
- - pip install . --use-mirrors
+ - pip install $DJANGO_VER
+ - pip install simplejson
+ - pip install factory_boy
+ - pip install coveralls
+ - pip install mock
+ - pip install .
script:
- django-admin.py --version
- coverage run --source=vkontakte_api quicktest.py vkontakte_api
View
1  vkontakte_api/tests.py
@@ -11,6 +11,7 @@ class User(VkontaktePKModel):
'''
Test model should be on top level, otherwise table will not be created
'''
+ resolve_screen_name_type = 'user'
screen_name = models.CharField(u'Короткое имя группы', max_length=50, unique=True)
slug_prefix = 'id'
Please sign in to comment.
Something went wrong with that request. Please try again.