From b0a4464c69d625b483cd34a996e62c545601f429 Mon Sep 17 00:00:00 2001 From: olivier <> Date: Mon, 18 Jan 2010 22:11:19 +0000 Subject: [PATCH] move unit tests into sub directory --- telemeta/tests/__init__.py | 36 +++++++++++++++++++++ telemeta/{tests.py => tests/model_tests.py} | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 telemeta/tests/__init__.py rename telemeta/{tests.py => tests/model_tests.py} (99%) diff --git a/telemeta/tests/__init__.py b/telemeta/tests/__init__.py new file mode 100644 index 00000000..04e06210 --- /dev/null +++ b/telemeta/tests/__init__.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2007 Samalyse SARL + +# This software is a computer program whose purpose is to backup, analyse, +# transcode and stream any audio content with its metadata over a web frontend. + +# This software is governed by the CeCILL license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL +# license as circulated by CEA, CNRS and INRIA at the following URL +# "http://www.cecill.info". + +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. + +# In this respect, the user's attention is drawn to the risks associated +# with loading, using, modifying and/or developing or reproducing the +# software by the user in light of its specific status of free software, +# that may mean that it is complicated to manipulate, and that also +# therefore means that it is reserved for developers and experienced +# professionals having in-depth computer knowledge. Users are therefore +# encouraged to load and test the software's suitability as regards their +# requirements in conditions enabling the security of their systems and/or +# data to be ensured and, more generally, to use and operate it in the +# same conditions as regards security. + +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL license and that you accept its terms. +# +# Authors: Olivier Guilyardi +# David LIPSZYC + +from model_tests import * diff --git a/telemeta/tests.py b/telemeta/tests/model_tests.py similarity index 99% rename from telemeta/tests.py rename to telemeta/tests/model_tests.py index ce1ff1be..5dd793c1 100644 --- a/telemeta/tests.py +++ b/telemeta/tests/model_tests.py @@ -34,7 +34,7 @@ # David LIPSZYC import unittest -from models import MediaCollection, MediaItem, Location, EthnicGroup, LocationType, User, Revision +from telemeta.models import MediaCollection, MediaItem, Location, EthnicGroup, LocationType, User, Revision from datetime import datetime, timedelta class CollectionItemTestCase(unittest.TestCase): -- 2.39.5