tests: run tests with postgres

This commit is contained in:
Thomas NOËL 2020-05-09 13:49:10 +02:00
parent b84bec87e9
commit 7066d22b0a
3 changed files with 6 additions and 5 deletions

View File

@ -206,7 +206,7 @@ def test_guichet(collectivite_1_guichet):
assert repr(guichet) == force_encoded_string_output(
u'Guichet(id=%s,collectivite=%s,%s)' % (
1, force_text(guichet.collectivite), force_text(guichet)
guichet.id, force_text(guichet.collectivite), force_text(guichet)
)
)

View File

@ -232,9 +232,9 @@ def test_base_model(fake_conf, atreal_openads, collectivite_1, collectivite_1_gu
assert forwardfile_1.get_url_name('list', plural=True) == 'list-forward-files'
assert forwardfile_1.get_absolute_url() == '/manage/atreal-openads/atreal/forward-file/1'
assert forwardfile_1.get_edit_url() == '/manage/atreal-openads/atreal/edit-forward-file/1'
assert forwardfile_1.get_delete_url() == '/manage/atreal-openads/atreal/delete-forward-file/1'
assert forwardfile_1.get_absolute_url() == '/manage/atreal-openads/atreal/forward-file/%s' % forwardfile_1.id
assert forwardfile_1.get_edit_url() == '/manage/atreal-openads/atreal/edit-forward-file/%s' % forwardfile_1.id
assert forwardfile_1.get_delete_url() == '/manage/atreal-openads/atreal/delete-forward-file/%s' % forwardfile_1.id
assert forwardfile_1.get_list_url() == '/manage/atreal-openads/atreal/forward-files'
assert atreal_openads.get_class_name_plural() == 'AtrealOpenads'

View File

@ -24,6 +24,7 @@ usedevelop =
coverage: True
nocoverage: False
setenv =
DB_ENGINE=django.db.backends.postgresql_psycopg2
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
coverage: COVERAGE=--cov-report xml --cov-report html --cov=atreal_openads/
@ -36,7 +37,7 @@ deps =
WebTest
mock
httmock
psycopg2
psycopg2-binary
pylint<1.8
pylint-django<0.8.1
django-webtest<1.9.3