Changeset 611

Show
Ignore:
Timestamp:
01/09/07 15:14:54
Author:
seang
Message:

Remove unneeded code from test framework

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PCL/trunk/PCL-GeoRSS/cartography/data/georss.py

    r609 r611  
    2929    import pkg_resources 
    3030    pkg_resources.require('PCL-Core') 
     31    pkg_resources.require('PCL-GeoRSS') 
    3132except: 
    3233    pass 
  • PCL/trunk/PCL-GeoRSS/cartography/data/__init__.py

    r609 r611  
     1# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages 
     2try: 
     3    __import__('pkg_resources').declare_namespace(__name__) 
     4except ImportError: 
     5    from pkgutil import extend_path 
     6    __path__ = extend_path(__path__, __name__) 
  • PCL/trunk/PCL-GeoRSS/setup.py

    r608 r611  
    88      author_email      = 'sgillies@frii.com', 
    99      url               = 'http://www.gispython.org', 
    10       namespace_packages= ['cartography'], 
     10      namespace_packages= ['cartography.data'], 
    1111      packages          = ['cartography', 'cartography.data',], 
    1212) 
  • PCL/trunk/PCL-GeoRSS/tests/runalldoctests.py

    r609 r611  
    77    import pkg_resources 
    88    pkg_resources.require('PCL-Core') 
    9     pkg_resources.require('Quadtree') 
     9    pkg_resources.require('PCL-GeoRSS') 
    1010except: 
    1111    pass 
    1212 
    1313def run(pattern): 
    14     testfiles = glob.glob(pattern) 
     14    if pattern is None: 
     15        testfiles = glob.glob('*.txt') 
     16    else: 
     17        testfiles = glob.glob(pattern) 
    1518    for file in testfiles:  
    1619        doctest.testfile(file) 
     
    1821if __name__ == "__main__": 
    1922    try: 
    20         opts, args = getopt.getopt(sys.argv[1:], "t:") 
     23        opts, args = getopt.getopt(sys.argv[1:], "t:v") 
    2124    except getopt.GetoptError: 
    2225        print "Usage: python runalldoctests.py [-t GLOB_PATTERN]" 
  • PCL/trunk/PCL-GeoRSS/tests/rundoctests.dist

    r609 r611  
    11#!/bin/sh 
    2 export PYTHONPATH="/home/sean/Projects/PCL-mindep/dev-packages:/usr/local/Zope-3.3.0/lib/python" 
     2export PYTHONPATH="/home/sean/Projects/PCL-trunk/dev-packages:/usr/local/Zope-3.3.0/lib/python" 
    33python runalldoctests.py -v 
  • PCL/trunk/PCL-GeoRSS/tests/_testing.py

    r609 r611  
    1 # ============================================================================= 
    2 # Python Cartographic Library. Copyright (C) 2004 Sean C. Gillies 
    3 
    4 # This program is free software; you can redistribute it and/or modify it 
    5 # under the terms of the GNU General Public License as published by the Free 
    6 # Software Foundation; either version 2 of the License, or (at your option) 
    7 # any later version. 
    8 
    9 # This program is distributed in the hope that it will be useful, but WITHOUT 
    10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
    11 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
    12 # details. 
    13 
    14 # You should have received a copy of the GNU General Public License along with 
    15 # this program; if not, write to the Free Software Foundation, Inc., 59 Temple 
    16 # Place, Suite 330, Boston, MA 02111-1307 USA 
    17 
    18 # Contact email: sgillies@frii.com 
    19 # ============================================================================= 
    20  
    21 from environment import * 
    22  
    23 # ============================================================================ 
    24 #  Testing Geometries in WKB decoded from hex 
    25 # ============================================================================ 
    26  
    27 # point at 0, 0 
    28 POINTA = "010100000000000000000000000000000000000000".decode("hex") 
    29  
    30 # point at 0.75, 0.75 
    31 POINTB = "0101000000000000000000E83F000000000000E83F".decode("hex") 
    32  
    33 # both of the above points 
    34 MULTIPOINT = "0104000000020000000101000000000000000000000000000000000000000101000000000000000000E83F000000000000E83F".decode('hex') 
    35  
    36 # 4 unit long line 
    37 # LINESTRING (-2 0, 2 0)' 
    38 LINESTRING = "01020000000200000000000000000000C0000000000000000000000000000000400000000000000000".decode("hex") 
    39  
    40 # same line as above, plus another crossing along the y axis 
    41 MULTILINESTRING = "01050000000200000001020000000200000000000000000000C000000000000000000000000000000040000000000000000001020000000200000000000000000000000000000000000040000000000000000000000000000000C0".decode('hex') 
    42  
    43 # 2 x 2 polygon with a 1 x 1 centered hole 
    44 # POLYGON((-1 -1,-1 1,1 1,1 -1,-1 -1),(-0.5,-0.5,-0.5 0.5,0.5 0.5,0.5 -0.5,-0.5 -0.5)) 
    45 POLYGON = '01030000000200000005000000000000000000F0BF000000000000F0BF000000000000F0BF000000000000F03F000000000000F03F000000000000F03F000000000000F03F000000000000F0BF000000000000F0BF000000000000F0BF05000000000000000000E0BF000000000000E0BF000000000000E0BF000000000000E03F000000000000E03F000000000000E03F000000000000E03F000000000000E0BF000000000000E0BF000000000000E0BF'.decode('hex') 
    46  
    47 # Same as above, plus a smaller single ring polygon to the upper right 
    48 MULTIPOLYGON = '01060000000200000001030000000200000005000000000000000000F0BF000000000000F0BF000000000000F0BF000000000000F03F000000000000F03F000000000000F03F000000000000F03F000000000000F0BF000000000000F0BF000000000000F0BF05000000000000000000E0BF000000000000E0BF000000000000E0BF000000000000E03F000000000000E03F000000000000E03F000000000000E03F000000000000E0BF000000000000E0BF000000000000E0BF01030000000100000005000000000000000000F83F000000000000F83F000000000000F83F0000000000000040000000000000004000000000000000400000000000000040000000000000F83F000000000000F83F000000000000F83F'.decode('hex') 
    49  
    50  
     1# nothing needed for GeoRSS