/[thuban]/branches/WIP-pyshapelib-bramz/test/runtests.py
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/test/runtests.py

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 3868 byte(s)
Diff to previous 2705 , to selected 1458
made a copy

Revision 2705 - (view) (annotate) - [select for diffs]
Modified Sun Sep 24 18:55:30 2006 UTC (18 years, 5 months ago) by bernhard
Original Path: trunk/thuban/test/runtests.py
File length: 3868 byte(s)
Diff to previous 2642 , to selected 1458
* test/runtests.py: Added new option ---setdecimalcommalocale
to run all tests with an LC_NUMERIC that uses comma as decimal_point.
Minor: Added (c) year 2006. Fixed typo in a docstring.

* test/test_transientdb.py: Minor: Added (c) year 2006. Fixed typo in
a docstring.


Revision 2642 - (view) (annotate) - [select for diffs]
Modified Fri Jul 1 20:49:04 2005 UTC (19 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 3599 byte(s)
Diff to previous 2640 , to selected 1458
First step towards unicode.  With this roughly we're at step 1
string_representation.txt

* Doc/technotes/string_representation.txt: New.  Document how
strings are represented in Thuban and how to get to a Unicode
Thuban.

* Thuban/__init__.py (set_internal_encoding)
(unicode_from_internal, internal_from_unicode): New. The first few
functions for the internal string representation

* Thuban/UI/about.py (unicodeToLocale): Removed.  Use
internal_from_unicode instead.

* Thuban/UI/__init__.py (install_wx_translation): Determine the
encoding to use for the internal string representation.  Also,
change the translation function to return strings in internal
representation even on unicode builds of wxPython

* Thuban/Model/load.py (SessionLoader.check_attrs): Decode
filenames too.
(SessionLoader.start_clrange): Use check_attrs to decode and check
the attributes.

* Thuban/Model/xmlreader.py (XMLReader.encode): Use
internal_from_unicode to convert unicode strings.

* Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
unicode_from_internal when applicable

* test/runtests.py (main): New command line option:
internal-encoding to specify the internal string encoding to use
in the tests.

* test/support.py (initthuban): Set the internal encoding to
latin-1

* test/test_load.py (TestSingleLayer.test, TestClassification.test)
(TestLabelLayer.test): Use the internal string representation when
dealing with non-ascii characters

* test/test_load_1_0.py (TestSingleLayer.test)
(TestClassification.test, TestLabelLayer.test): Use the internal
string representation when dealing with non-ascii characters

* test/test_load_0_9.py (TestSingleLayer.test)
(TestClassification.test): Use the internal string representation
when dealing with non-ascii characters

* test/test_load_0_8.py (TestUnicodeStrings.test): Use the
internal string representation when dealing with non-ascii
characters

* test/test_save.py (XMLWriterTest.testEncode)
(SaveSessionTest.testClassifiedLayer): Use the internal string
representation when dealing with non-ascii characters where
applicable


Revision 2640 - (view) (annotate) - [select for diffs]
Modified Thu Jun 30 19:24:45 2005 UTC (19 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 3451 byte(s)
Diff to previous 2435 , to selected 1458
Untabify.


Revision 2435 - (view) (annotate) - [select for diffs]
Modified Tue Dec 7 16:44:51 2004 UTC (20 years, 3 months ago) by nhueffme
Original Path: trunk/thuban/test/runtests.py
File length: 3410 byte(s)
Diff to previous 2079 , to selected 1458
Adding a new extension to read shapefiles with ogr. It is planned to add other
vector formats.


Revision 2079 - (view) (annotate) - [select for diffs]
Modified Fri Feb 20 14:29:13 2004 UTC (21 years ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 3327 byte(s)
Diff to previous 1962 , to selected 1458
(find_test_modules): New. Function with the
module finding code from main.
(main): Use find_test_modules to figure out the default test
modules and take modules from Extensions.svgexport.test too.


Revision 1962 - (view) (annotate) - [select for diffs]
Modified Wed Nov 19 15:46:22 2003 UTC (21 years, 3 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2333 byte(s)
Diff to previous 1838 , to selected 1458
(main): The old table interface is gone and
with it the deprecation warnings so remove the code that turns
these warnings into errors


Revision 1838 - (view) (annotate) - [select for diffs]
Modified Tue Oct 21 09:58:43 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2672 byte(s)
Diff to previous 1601 , to selected 1458
(main): Let the user specify which tests to run
on the command line


Revision 1601 - (view) (annotate) - [select for diffs]
Modified Mon Aug 18 17:22:07 2003 UTC (21 years, 6 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2612 byte(s)
Diff to previous 1555 , to selected 1458
* test/support.py (ThubanTestResult.printErrors): Indent the
reason for the skips in the output to make it a bit more readable.
(execute_as_testsuite): New helper function to run a test suite
and print some more information.
(run_tests): Use execute_as_testsuite to run the tests

* test/runtests.py (main): Use execute_as_testsuite to run the
tests


Revision 1555 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 15:41:05 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2622 byte(s)
Diff to previous 1476 , to selected 1458
* test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
(ThubanTestProgram): New classes that extend the respective
classes from unittest. These new version support skipping tests
under certain expected conditions. In the Thuban test suite we
uses this for tests that require the optional gdal support.
(run_tests): Use ThubanTestProgram instead of the unittest.main()

* test/runtests.py (main): Use the new ThubanTestRunner instead of
the normal one from unittest

* test/test_layer.py (TestLayer.test_raster_layer): If this test
is not run because gdal support isn't available report this to the
runner.

* test/test_baserenderer.py
(TestBaseRenderer.test_raster_no_projection): Do not run this test
if gdal support isn't available and report this to the runner.


Revision 1476 - (view) (annotate) - [select for diffs]
Modified Thu Jul 24 15:16:15 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2621 byte(s)
Diff to previous 1458
(main): Recognize the long "verbose" option
correctly.


Revision 1458 - (view) (annotate) - [selected]
Modified Fri Jul 18 15:09:22 2003 UTC (21 years, 7 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2629 byte(s)
Diff to previous 1396
The test suite can now be run without an X
connection. To make sure this remains true, remove the DISPLAY
environment variable so that an error occurs if the wxGTK is
imported accidentally


Revision 1396 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 14:55:22 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/test/runtests.py
File length: 2280 byte(s)
Diff to previous 1377 , to selected 1458
(main): Only print "Unknown option" for unsupported options.


Revision 1377 - (view) (annotate) - [select for diffs]
Modified Tue Jul 8 10:54:16 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 2262 byte(s)
Diff to previous 1269 , to selected 1458
(main): Make the default output less verbose
and add a verbosity option (-v) to get the old output


Revision 1269 - (view) (annotate) - [select for diffs]
Modified Fri Jun 20 16:10:22 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 1996 byte(s)
Diff to previous 1245 , to selected 1458
Add CVS keywords


Revision 1245 - (view) (annotate) - [select for diffs]
Modified Thu Jun 19 19:29:23 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 1951 byte(s)
Diff to previous 1219 , to selected 1458
Add XML validation to some of the tests. Validation will only be
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
To make the DTD available to the test cases it's moved into
Resources/XML

* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
for versions up to and including 0.2. Two slight changes: added an
encoding specification and fixed the comment which refered to
GRASS, not Thuban

* test/xmlsupport.py: New support module for tests involving XML.
Currently there's a mix-in class for XML validation.

* test/test_xmlsupport.py: New. Tests for the xmlsupport module

* test/test_save.py (SaveSessionTest): Derive from ValidationTest
so that we can validate the
(SaveSessionTest.testEmptySession)
(SaveSessionTest.testSingleLayer)
(SaveSessionTest.testSingleLayer)
(SaveSessionTest.testLayerProjection)
(SaveSessionTest.testRasterLayer)
(SaveSessionTest.testClassifiedLayer): Validate the generated XML

* test/runtests.py (main): Call print_additional_summary instead
of print_garbage_information

* test/support.py (resource_dir): New function to return the
"Resource" subdirectory
(print_additional_summary): New function to combine several
summary functions
(run_tests): Use print_additional_summary instead of calling
print_garbage_information directly


Revision 1219 - (view) (annotate) - [select for diffs]
Modified Mon Jun 16 17:42:54 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 1952 byte(s)
Diff to previous 597 , to selected 1458
Update to the layer interface: Direct access to the table,
shapetable, shapefile and filename attributes is now actively
deprecated by issuing deprecation warnings for all places where
this happens.

* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
to the instance variables table, shapetable, shapefile and
filename via __getattr__ so that we can issue a deprecation
warning.
(Layer.SetShapeStore): Don't set the deprecated instance variables
any more
(Layer.SetShapeStore): Don't use deprecated layer instance
variables
(Layer.Destroy): No need to explicitly remove the instance
variables any more
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
instance variables

* Thuban/UI/classgen.py (ClassGenDialog.__init__)
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
use deprecated layer instance variables

* Thuban/UI/classifier.py (Classifier.__init__): Don't use
deprecated layer instance variables

* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
instance variables

* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
deprecated layer instance variables

* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
deprecated layer instance variables

* Thuban/Model/save.py (SessionSaver.write_layer): Don't use
deprecated layer instance variables

* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
(MapRenderer.polygon_render_param): Don't use deprecated layer instance
variables

* test/runtests.py (main): Turn Thuban's deprecation warnings into
errors so that they're cought by the tests

* test/test_load.py (TestSingleLayer.test): Don't use deprecated
layer instance variables


Revision 597 - (view) (annotate) - [select for diffs]
Modified Thu Apr 3 11:37:06 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 917 byte(s)
Diff to previous 292 , to selected 1458
(main): Use support.print_garbage_information


Revision 292 - (view) (annotate) - [select for diffs]
Added Fri Aug 30 09:44:12 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/test/runtests.py
File length: 992 byte(s)
Diff to selected 1458
Initial set of tests and
brief instructions on how to run them


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26