Changeset - 96779dba8b01
[Not reviewed]
default
0 2 0
Mads Kiilerich - 10 years ago 2016-05-17 23:10:33
madski@unity3d.com
tests: remove reference to removed kallithea/tests/parameterized.py

The file was removed in 66c40720e7b2. I guess tests still passed because it
still found the .pyc file.
2 files changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/__init__.py
Show inline comments
 
# -*- coding: utf-8 -*-
 
# This program is free software: you can redistribute it and/or modify
 
# it under the terms of the GNU General Public License as published by
 
# the Free Software Foundation, either version 3 of the License, or
 
# (at your option) any later version.
 
#
 
# This program is distributed in the hope that it will be useful,
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
# GNU General Public License for more details.
 
#
 
# You should have received a copy of the GNU General Public License
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 

	
 
"""
 
Pylons application test package
 

	
 
This package assumes the Pylons environment is already loaded.
 

	
 
This module initializes the application via ``websetup`` (`paster
 
setup-app`) and provides the base testing objects.
 

	
 
Refer to docs/contributing.rst for details on running the test suite.
 
"""
 
import os
 
import re
 
import time
 
import logging
 
import datetime
 
import hashlib
 
import tempfile
 
from os.path import join as jn
 

	
 
from tempfile import _RandomNameSequence
 

	
 
import pylons
 
import pylons.test
 
from pylons import config, url
 
from pylons.i18n.translation import _get_translator
 
from pylons.util import ContextObj
 

	
 
from routes.util import URLGenerator
 
from webtest import TestApp
 
import pytest
 

	
 
from kallithea.lib.compat import unittest
 
from kallithea import is_windows
 
from kallithea.model.db import Notification, User, UserNotification
 
from kallithea.model.meta import Session
 
from kallithea.tests.parameterized import parameterized
 
from kallithea.lib.utils2 import safe_str
 

	
 

	
 
os.environ['TZ'] = 'UTC'
 
if not is_windows:
 
    time.tzset()
 

	
 
log = logging.getLogger(__name__)
 

	
 
skipif = pytest.mark.skipif
 
parametrize = pytest.mark.parametrize
 

	
 
__all__ = [
 
    'skipif', 'parametrize', 'environ', 'url', 'TestController',
 
    'ldap_lib_installed', 'pam_lib_installed',
 
    'TESTS_TMP_PATH', 'HG_REPO', 'GIT_REPO', 'NEW_HG_REPO', 'NEW_GIT_REPO',
 
    'HG_FORK', 'GIT_FORK', 'TEST_USER_ADMIN_LOGIN', 'TEST_USER_ADMIN_PASS',
 
    'TEST_USER_ADMIN_EMAIL', 'TEST_USER_REGULAR_LOGIN', 'TEST_USER_REGULAR_PASS',
 
    'TEST_USER_REGULAR_EMAIL', 'TEST_USER_REGULAR2_LOGIN',
 
    'TEST_USER_REGULAR2_PASS', 'TEST_USER_REGULAR2_EMAIL', 'TEST_HG_REPO',
 
    'TEST_HG_REPO_CLONE', 'TEST_HG_REPO_PULL', 'TEST_GIT_REPO',
 
    'TEST_GIT_REPO_CLONE', 'TEST_GIT_REPO_PULL', 'HG_REMOTE_REPO',
 
    'GIT_REMOTE_REPO', 'SCM_TESTS',
 
]
 

	
 
# Invoke websetup with the current config file
 
# SetupCommand('setup-app').run([config_file])
 

	
 
environ = {}
 

	
 
#SOME GLOBALS FOR TESTS
 

	
 
TESTS_TMP_PATH = jn(tempfile.gettempdir(), 'rc_test_%s' % _RandomNameSequence().next())
 
TEST_USER_ADMIN_LOGIN = 'test_admin'
 
TEST_USER_ADMIN_PASS = 'test12'
 
TEST_USER_ADMIN_EMAIL = 'test_admin@example.com'
 

	
 
TEST_USER_REGULAR_LOGIN = 'test_regular'
 
TEST_USER_REGULAR_PASS = 'test12'
 
TEST_USER_REGULAR_EMAIL = 'test_regular@example.com'
 

	
 
TEST_USER_REGULAR2_LOGIN = 'test_regular2'
 
TEST_USER_REGULAR2_PASS = 'test12'
 
TEST_USER_REGULAR2_EMAIL = 'test_regular2@example.com'
 

	
 
HG_REPO = u'vcs_test_hg'
 
GIT_REPO = u'vcs_test_git'
 

	
 
NEW_HG_REPO = u'vcs_test_hg_new'
 
NEW_GIT_REPO = u'vcs_test_git_new'
 

	
 
HG_FORK = u'vcs_test_hg_fork'
 
GIT_FORK = u'vcs_test_git_fork'
 

	
 
## VCS
 
SCM_TESTS = ['hg', 'git']
 
uniq_suffix = str(int(time.mktime(datetime.datetime.now().timetuple())))
 

	
 
GIT_REMOTE_REPO = 'git://github.com/codeinn/vcs.git'
 

	
 
TEST_GIT_REPO = jn(TESTS_TMP_PATH, GIT_REPO)
 
TEST_GIT_REPO_CLONE = jn(TESTS_TMP_PATH, 'vcsgitclone%s' % uniq_suffix)
 
TEST_GIT_REPO_PULL = jn(TESTS_TMP_PATH, 'vcsgitpull%s' % uniq_suffix)
 

	
 

	
 
HG_REMOTE_REPO = 'http://bitbucket.org/marcinkuzminski/vcs'
 

	
 
TEST_HG_REPO = jn(TESTS_TMP_PATH, HG_REPO)
 
TEST_HG_REPO_CLONE = jn(TESTS_TMP_PATH, 'vcshgclone%s' % uniq_suffix)
 
TEST_HG_REPO_PULL = jn(TESTS_TMP_PATH, 'vcshgpull%s' % uniq_suffix)
 

	
 
TEST_DIR = tempfile.gettempdir()
 
TEST_REPO_PREFIX = 'vcs-test'
 

	
 
# cached repos if any !
 
# comment out to get some other repos from bb or github
 
GIT_REMOTE_REPO = jn(TESTS_TMP_PATH, GIT_REPO)
 
HG_REMOTE_REPO = jn(TESTS_TMP_PATH, HG_REPO)
 

	
 
#skip ldap tests if LDAP lib is not installed
 
ldap_lib_installed = False
 
try:
 
    import ldap
 
    ldap.API_VERSION
 
    ldap_lib_installed = True
 
except ImportError:
 
    # means that python-ldap is not installed
 
    pass
 

	
 
try:
 
    import pam
 
    pam.PAM_TEXT_INFO
 
    pam_lib_installed = True
 
except ImportError:
 
    pam_lib_installed = False
 

	
scripts/manifest
Show inline comments
 
@@ -825,128 +825,127 @@ kallithea/templates/search/search_reposi
 
kallithea/templates/summary/
 
kallithea/templates/summary/statistics.html
 
kallithea/templates/summary/summary.html
 
kallithea/templates/switch_to_list.html
 
kallithea/templates/tags/
 
kallithea/templates/tags/tags.html
 
kallithea/templates/tags/tags_data.html
 
kallithea/tests/
 
kallithea/tests/__init__.py
 
kallithea/tests/api/
 
kallithea/tests/api/__init__.py
 
kallithea/tests/api/api_base.py
 
kallithea/tests/api/test_api_git.py
 
kallithea/tests/api/test_api_hg.py
 
kallithea/tests/conftest.py
 
kallithea/tests/fixture.py
 
kallithea/tests/fixtures/
 
kallithea/tests/fixtures/diff_with_diff_data.diff
 
kallithea/tests/fixtures/git_diff_binary_and_normal.diff
 
kallithea/tests/fixtures/git_diff_chmod.diff
 
kallithea/tests/fixtures/git_diff_mod_single_binary_file.diff
 
kallithea/tests/fixtures/git_diff_modify_binary_file.diff
 
kallithea/tests/fixtures/git_diff_rename_file.diff
 
kallithea/tests/fixtures/git_node_history_response.json
 
kallithea/tests/fixtures/hg_diff_add_single_binary_file.diff
 
kallithea/tests/fixtures/hg_diff_binary_and_normal.diff
 
kallithea/tests/fixtures/hg_diff_chmod.diff
 
kallithea/tests/fixtures/hg_diff_chmod_and_mod_single_binary_file.diff
 
kallithea/tests/fixtures/hg_diff_copy_and_chmod_file.diff
 
kallithea/tests/fixtures/hg_diff_copy_and_modify_file.diff
 
kallithea/tests/fixtures/hg_diff_copy_chmod_and_edit_file.diff
 
kallithea/tests/fixtures/hg_diff_copy_file.diff
 
kallithea/tests/fixtures/hg_diff_del_single_binary_file.diff
 
kallithea/tests/fixtures/hg_diff_mod_file_and_rename.diff
 
kallithea/tests/fixtures/hg_diff_mod_single_binary_file.diff
 
kallithea/tests/fixtures/hg_diff_mod_single_file_and_rename_and_chmod.diff
 
kallithea/tests/fixtures/hg_diff_rename_and_chmod_file.diff
 
kallithea/tests/fixtures/hg_diff_rename_file.diff
 
kallithea/tests/fixtures/hg_diff_rename_space_cr.diff
 
kallithea/tests/fixtures/hg_node_history_response.json
 
kallithea/tests/fixtures/journal_dump.csv
 
kallithea/tests/fixtures/markuptest.diff
 
kallithea/tests/fixtures/vcs_test_git.tar.gz
 
kallithea/tests/fixtures/vcs_test_hg.tar.gz
 
kallithea/tests/functional/
 
kallithea/tests/functional/__init__.py
 
kallithea/tests/functional/test_admin.py
 
kallithea/tests/functional/test_admin_auth_settings.py
 
kallithea/tests/functional/test_admin_defaults.py
 
kallithea/tests/functional/test_admin_gists.py
 
kallithea/tests/functional/test_admin_notifications.py
 
kallithea/tests/functional/test_admin_permissions.py
 
kallithea/tests/functional/test_admin_repo_groups.py
 
kallithea/tests/functional/test_admin_repos.py
 
kallithea/tests/functional/test_admin_settings.py
 
kallithea/tests/functional/test_admin_user_groups.py
 
kallithea/tests/functional/test_admin_users.py
 
kallithea/tests/functional/test_branches.py
 
kallithea/tests/functional/test_changelog.py
 
kallithea/tests/functional/test_changeset.py
 
kallithea/tests/functional/test_changeset_comments.py
 
kallithea/tests/functional/test_compare.py
 
kallithea/tests/functional/test_compare_local.py
 
kallithea/tests/functional/test_feed.py
 
kallithea/tests/functional/test_files.py
 
kallithea/tests/functional/test_followers.py
 
kallithea/tests/functional/test_forks.py
 
kallithea/tests/functional/test_home.py
 
kallithea/tests/functional/test_journal.py
 
kallithea/tests/functional/test_login.py
 
kallithea/tests/functional/test_my_account.py
 
kallithea/tests/functional/test_pullrequests.py
 
kallithea/tests/functional/test_repo_groups.py
 
kallithea/tests/functional/test_search.py
 
kallithea/tests/functional/test_summary.py
 
kallithea/tests/functional/test_tags.py
 
kallithea/tests/models/
 
kallithea/tests/models/__init__.py
 
kallithea/tests/models/common.py
 
kallithea/tests/models/test_changeset_status.py
 
kallithea/tests/models/test_diff_parsers.py
 
kallithea/tests/models/test_notifications.py
 
kallithea/tests/models/test_permissions.py
 
kallithea/tests/models/test_repo_groups.py
 
kallithea/tests/models/test_repos.py
 
kallithea/tests/models/test_user_group_permissions_on_repo_groups.py
 
kallithea/tests/models/test_user_groups.py
 
kallithea/tests/models/test_user_permissions_on_repo_groups.py
 
kallithea/tests/models/test_user_permissions_on_repos.py
 
kallithea/tests/models/test_users.py
 
kallithea/tests/other/
 
kallithea/tests/other/__init__.py
 
kallithea/tests/other/manual_test_vcs_operations.py
 
kallithea/tests/other/test_libs.py
 
kallithea/tests/other/test_mail.py
 
kallithea/tests/other/test_validators.py
 
kallithea/tests/parameterized.py
 
kallithea/tests/scripts/
 
kallithea/tests/scripts/create_rc.sh
 
kallithea/tests/scripts/manual_test_concurrency.py
 
kallithea/tests/scripts/manual_test_crawler.py
 
kallithea/tests/scripts/mem_watch
 
kallithea/tests/test.ini
 
kallithea/tests/vcs/
 
kallithea/tests/vcs/__init__.py
 
kallithea/tests/vcs/aconfig
 
kallithea/tests/vcs/base.py
 
kallithea/tests/vcs/conf.py
 
kallithea/tests/vcs/test_archives.py
 
kallithea/tests/vcs/test_branches.py
 
kallithea/tests/vcs/test_changesets.py
 
kallithea/tests/vcs/test_filenodes_unicode_path.py
 
kallithea/tests/vcs/test_getitem.py
 
kallithea/tests/vcs/test_getslice.py
 
kallithea/tests/vcs/test_git.py
 
kallithea/tests/vcs/test_hg.py
 
kallithea/tests/vcs/test_inmemchangesets.py
 
kallithea/tests/vcs/test_nodes.py
 
kallithea/tests/vcs/test_repository.py
 
kallithea/tests/vcs/test_tags.py
 
kallithea/tests/vcs/test_utils.py
 
kallithea/tests/vcs/test_utils_filesize.py
 
kallithea/tests/vcs/test_vcs.py
 
kallithea/tests/vcs/test_workdirs.py
 
kallithea/tests/vcs/utils.py
 
kallithea/websetup.py
 
setup.cfg
 
setup.py
0 comments (0 inline, 0 general)