/[thuban]/branches/WIP-pyshapelib-bramz/test/README
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/test/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1605 - (hide annotations)
Tue Aug 19 11:00:40 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/test/README
File size: 1265 byte(s)
Add very basic postgis database support and the corresponding test
cases. The test cases require a PostgreSQL + postgis installation
but no existing database. The database will be created
automatically by the test cases

* test/README: Add note about skipped tests and the requirements
of the postgis tests.

* Thuban/Model/postgisdb.py: New. Basic postgis database support.

* test/test_postgis_db.py: New. Test cases for the postgis
support.

* Thuban/Model/wellknowntext.py: New. Parser for well-known-text
format

* test/test_wellknowntext.py: New. Test cases for the
wellknowntext parser

* test/postgissupport.py: New. Support module for tests involving
a postgis database.

* test/support.py (execute_as_testsuite): Shut down the postmaster
if it's still running after the tests

* Thuban/Model/data.py (RAW_WKT): New constant for raw data in
well known text format

1 bh 292 This directory contains unittests for Thuban.
2    
3     To run all tests run runtests.py:
4    
5     $ python runtests.py
6    
7 bh 323 To run individual tests, run one of the test_*.py scripts, e.g.:
8 bh 292
9 bh 323 $ python test_table.py -v
10 bh 292
11    
12     The tests use the unittest module of the python standard library.
13 bh 345
14     Some of the tests expect the iceland sample data to be present in
15     ../Data and so may fail if you're working from a source archive.
16    
17 bh 1605 Test for optional features should be automatically skipped when run on
18     an installation where the feature is not available or the test can't be
19     run for some other reason as may be the case with the postgis interface
20     tests (see below). Skipped tests are marked with an S in the default
21     brief output and are listed after all test have been run.
22    
23     The PostGIS tests require a PostGIS installation on the machine where
24     the tests are run even though Thuban can use PostGIS database as long as
25     psycopg is installed. The test will create their own database cluster in
26     temp/postgis and start their own postmaster process, so the only
27     requirement is that the software is installed and the various postgresql
28     command line programs are on the PATH because they're executed as
29     subprocesses to build the database cluster, start the postmaster, etc.
30    
31    
32     $Revision$
33     $Source$
34     $Id$

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26