diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-08-19 13:38:26 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-08-19 23:22:10 +0200 |
commit | 09133e9727e284f3f7d82231abb8b5f9f3efe706 (patch) | |
tree | 48fe50c93c2cd9ec48c00625fd74d351a30ce772 /okupy/common | |
parent | Remove the fixture (diff) | |
download | identity.gentoo.org-09133e9727e284f3f7d82231abb8b5f9f3efe706.tar.gz identity.gentoo.org-09133e9727e284f3f7d82231abb8b5f9f3efe706.tar.bz2 identity.gentoo.org-09133e9727e284f3f7d82231abb8b5f9f3efe706.zip |
Add tests/vars.py that stores variables used by the tests
Since we tend to re-use the same vars between test files, keeping them in a
central place seems reasonable
Diffstat (limited to 'okupy/common')
-rw-r--r-- | okupy/common/test_helpers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/okupy/common/test_helpers.py b/okupy/common/test_helpers.py index 35aa235..81581c2 100644 --- a/okupy/common/test_helpers.py +++ b/okupy/common/test_helpers.py @@ -9,6 +9,8 @@ from django.db import DatabaseError from django.test import TestCase, RequestFactory from django.utils.functional import curry +from okupy.tests import vars + import mock @@ -23,7 +25,7 @@ no_database = curry( def ldap_users(username=None, all=False, clean=False, - directory=settings.DIRECTORY): + directory=vars.DIRECTORY): """ Retrieve either a single LDAP user from the fake LDAP directory, or all the users, or clean up the users from the directory |