Changeset 10655:a228b55811a4 in orange


Ignore:
Timestamp:
03/27/12 11:06:19 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Moved testing from utils into testing.

Files:
31 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/__init__.py

    r10651 r10655  
    1 from Orange.utils.testing import * 
     1from Orange.testing.testing import * 
  • Orange/testing/unit/tests/test_association.py

    r10651 r10655  
    11from __future__ import division 
    22from Orange import associate 
    3 from Orange.utils import testing 
    4 from Orange.utils.testing import test_on_data, datasets_driven 
     3from Orange.testing import testing 
     4from Orange.testing.testing import test_on_data, datasets_driven 
    55try: 
    66    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_bayes.py

    r10651 r10655  
    1 from Orange.utils import testing 
     1from Orange.testing import testing 
    22 
    33# TODO: test different prob estimators 
  • Orange/testing/unit/tests/test_c45.py

    r10651 r10655  
    1 from Orange.utils import testing 
     1from Orange.testing import testing 
    22try: 
    33    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_data_utils.py

    r10651 r10655  
    1 from Orange.utils import testing 
     1from Orange.testing import testing 
    22from Orange.data import utils 
    33import Orange 
  • Orange/testing/unit/tests/test_demo.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import data_driven, datasets_driven, test_on_data 
     1from Orange.testing import testing 
     2from Orange.testing.testing import data_driven, datasets_driven, test_on_data 
    33try: 
    44    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_distance.py

    r10651 r10655  
    33except: 
    44    import unittest 
    5 from Orange.utils import testing 
    6 from Orange.utils.testing import datasets_driven, test_on_data 
     5from Orange.testing import testing 
     6from Orange.testing.testing import datasets_driven, test_on_data 
    77 
    88from Orange.distance import * 
  • Orange/testing/unit/tests/test_earth.py

    r10651 r10655  
    11import Orange 
    2 from Orange.utils import testing 
    3 from Orange.utils.testing import datasets_driven, test_on_data, test_on_datasets 
     2from Orange.testing import testing 
     3from Orange.testing.testing import datasets_driven, test_on_data, test_on_datasets 
    44from Orange.regression import earth 
    55 
  • Orange/testing/unit/tests/test_ensemble.py

    r10651 r10655  
    44    import unittest 
    55 
    6 from Orange.utils import testing 
    7 from Orange.utils.testing import datasets_driven, test_on_datasets 
     6from Orange.testing import testing 
     7from Orange.testing.testing import datasets_driven, test_on_datasets 
    88 
    99@datasets_driven(datasets=testing.CLASSIFICATION_DATASETS) 
  • Orange/testing/unit/tests/test_feature_selection.py

    r10651 r10655  
    1 import Orange.utils.testing as testing 
     1import Orange.testing.testing as testing 
    22from Orange.feature import selection, scoring 
    33import Orange 
  • Orange/testing/unit/tests/test_hclustering.py

    r10651 r10655  
    77from Orange.distance import * 
    88 
    9 import Orange.utils.testing as testing 
     9import Orange.testing.testing as testing 
    1010import Orange 
    1111try: 
  • Orange/testing/unit/tests/test_io.py

    r10651 r10655  
    44    import unittest 
    55import Orange 
    6 from Orange.utils import testing 
     6from Orange.testing import testing 
    77import os, sys 
    88 
  • Orange/testing/unit/tests/test_kmeans.py

    r10651 r10655  
    33except: 
    44    import unittest 
    5 from Orange.utils import testing 
     5from Orange.testing import testing 
    66from Orange.clustering import kmeans 
    77from Orange.clustering.kmeans import Clustering 
  • Orange/testing/unit/tests/test_knn.py

    r10651 r10655  
    44    import unittest 
    55import Orange 
    6 from Orange.utils import testing 
    7 from Orange.utils.testing import datasets_driven, test_on_data 
     6from Orange.testing import testing 
     7from Orange.testing.testing import datasets_driven, test_on_data 
    88from Orange.classification import knn 
    99from Orange.distance import Euclidean 
  • Orange/testing/unit/tests/test_lasso.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data, test_on_datasets 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data, test_on_datasets 
    33from Orange.regression import lasso 
    44import Orange 
  • Orange/testing/unit/tests/test_linear.py

    r10651 r10655  
    11import Orange 
    2 from Orange.utils import testing 
    3 from Orange.utils.testing import datasets_driven 
     2from Orange.testing import testing 
     3from Orange.testing.testing import datasets_driven 
    44from Orange.classification.svm import LinearLearner 
    55try: 
  • Orange/testing/unit/tests/test_linregression.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data, test_on_datasets 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data, test_on_datasets 
    33from Orange.regression import linear 
    44import Orange 
  • Orange/testing/unit/tests/test_logreg.py

    r10651 r10655  
    1 from Orange.utils import testing 
     1from Orange.testing import testing 
    22try: 
    33    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_majority.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data 
    33from Orange.classification import majority 
    44from Orange.statistics import distribution 
  • Orange/testing/unit/tests/test_mds.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import test_on_data, datasets_driven 
     1from Orange.testing import testing 
     2from Orange.testing.testing import test_on_data, datasets_driven 
    33 
    44try: 
  • Orange/testing/unit/tests/test_measures.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data 
    33from Orange.feature import scoring 
    44try: 
  • Orange/testing/unit/tests/test_preprocessors.py

    r10651 r10655  
    3838import orange 
    3939 
    40 import Orange.utils.testing as testing 
     40import Orange.testing.testing as testing 
    4141 
    4242@testing.datasets_driven(datasets=testing.CLASSIFICATION_DATASETS) 
  • Orange/testing/unit/tests/test_regression.py

    r10651 r10655  
    88 
    99from Orange.utils import environ 
    10 from Orange.utils import testing 
     10from Orange.testing import testing 
    1111 
    1212 
  • Orange/testing/unit/tests/test_rules.py

    r10651 r10655  
    1 from Orange.utils import testing 
     1from Orange.testing import testing 
    22from Orange.classification import rules 
    33 
  • Orange/testing/unit/tests/test_som.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data 
    33try: 
    44    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_stepwise_wrapper.py

    r10651 r10655  
    55 
    66import Orange 
    7 from Orange.utils import testing 
     7from Orange.testing import testing 
    88 
    99from Orange.classification import bayes 
  • Orange/testing/unit/tests/test_svm.py

    r10651 r10655  
    1111from Orange.classification import svm                             
    1212from Orange.classification.svm.kernels import BagOfWords, RBFKernelWrapper 
    13 from Orange.utils import testing 
    14 from Orange.utils.testing import datasets_driven, test_on_datasets, test_on_data 
     13from Orange.testing import testing 
     14from Orange.testing.testing import datasets_driven, test_on_datasets, test_on_data 
    1515import orange 
    1616 
  • Orange/testing/unit/tests/test_table.py

    r10651 r10655  
    88except: 
    99    import unittest 
    10 from Orange.utils import testing 
     10from Orange.testing import testing 
    1111import Orange 
    1212import cPickle 
  • Orange/testing/unit/tests/test_tree.py

    r10651 r10655  
    1 from Orange.utils import testing 
    2 from Orange.utils.testing import datasets_driven, test_on_data 
     1from Orange.testing import testing 
     2from Orange.testing.testing import datasets_driven, test_on_data 
    33try: 
    44    import unittest2 as unittest 
  • Orange/testing/unit/tests/test_variable.py

    r10651 r10655  
    44    import unittest 
    55import Orange 
    6 from Orange.utils import testing 
     6from Orange.testing import testing 
    77 
    88class TestVariableMake(unittest.TestCase): 
  • docs/development/rst/testing.rst

    r10651 r10655  
    33####### 
    44 
    5 .. automodule:: Orange.utils.testing 
     5.. automodule:: Orange.testing.testing 
Note: See TracChangeset for help on using the changeset viewer.