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

Log of /branches/WIP-pyshapelib-bramz/test/test_classification.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: 18669 byte(s)
Diff to previous 2688
made a copy

Revision 2688 - (view) (annotate) - [select for diffs]
Modified Fri Jun 30 12:27:20 2006 UTC (18 years, 8 months ago) by frank
Original Path: trunk/thuban/test/test_classification.py
File length: 18669 byte(s)
Diff to previous 1910
New Classification "Pattern": Classify text attributes by regexp.

Revision 1910 - (view) (annotate) - [select for diffs]
Modified Fri Oct 31 18:16:46 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 15216 byte(s)
Diff to previous 1907
(TestClassification.test_set_default_group): New. Test the
SetDefaultGroup method
(TestClassification.test_insert_group): New. Test the InsertGroup
method
(TestClassification.test_remove_group): New. Test the RemoveGroup
method
(TestClassification.test_replace_group): New. Test the
ReplaceGroup method


Revision 1907 - (view) (annotate) - [select for diffs]
Modified Fri Oct 31 17:35:11 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 13101 byte(s)
Diff to previous 1905
(TestClassification.setUp):
Subscribe to the CLASS_CHANGED messages
(TestClassification.tearDown): New. Destroy the classification
properly
(TestClassification.test_defaults): Add tests for the default line
width and whether no messages were sent yet
(TestClassification.test_set_default_properties): Add tests for
messages and setting the default line width
(TestClassification.test_add_singleton)
(TestClassification.test_add_range)
(TestClassification.test_multiple_groups): Add tests for messages


Revision 1905 - (view) (annotate) - [select for diffs]
Modified Fri Oct 31 17:09:58 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 12044 byte(s)
Diff to previous 1903
Some more refactoring in preparation for new tests:

(TestClassification.setUp): New.
Instantiate the classification here. Update the test methods
accordingly.
(TestClassification.test_multiple_groups): Make sure that the two
singletons matching 1 are considered different.


Revision 1903 - (view) (annotate) - [select for diffs]
Modified Fri Oct 31 16:52:33 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 11104 byte(s)
Diff to previous 1898
(red, green, blue): New. These
constants were used in several cases. Update the relevant methods.
(TestClassification.test_defaults)
(TestClassification.test_set_default_properties)
(TestClassification.test_add_singleton)
(TestClassification.test_add_range)
(TestClassification.test_multiple_groups)
(TestClassification.test_deepcopy): New. These were formerly all
part of the single method test.
(TestClassification.test_deepcopy): Removed.
(TestClassIterator): Removed. The test case is now a method of
TestClassification since it tests part of the public interface of
Classification
(TestClassification.test_iterator): New. Used to be
TestClassIterator effectively


Revision 1898 - (view) (annotate) - [select for diffs]
Modified Fri Oct 31 14:38:09 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 9845 byte(s)
Diff to previous 1437
(TestClassGroupProperties)
(TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
(TestClassGroupSingleton, TestClassIterator, TestClassification):
Split TestClassification into several classes, one for each class
being tested. TestClassification itself now only tests
Classification. This split makes changes to the tests a bit easier


Revision 1437 - (view) (annotate) - [select for diffs]
Modified Wed Jul 16 13:25:16 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9684 byte(s)
Diff to previous 1356
(TestClassification.test_classification): Remove tests for methods
        that no longer exist.


Revision 1356 - (view) (annotate) - [select for diffs]
Modified Wed Jul 2 09:37:59 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 10383 byte(s)
Diff to previous 1346
Fix tests of ClassGroupRange so that they use the new signature.


Revision 1346 - (view) (annotate) - [select for diffs]
Modified Tue Jul 1 16:11:55 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 10243 byte(s)
Diff to previous 884
 Fix color references and
        change calls to Classification.[SetField|SetFieldType] to
        SetFieldInfo.


Revision 884 - (view) (annotate) - [select for diffs]
Modified Fri May 9 16:34:53 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 10220 byte(s)
Diff to previous 723
Explicit imports.
(TestClassification.test_ClassGroupRange): Fix test for new Range class.


Revision 723 - (view) (annotate) - [select for diffs]
Modified Thu Apr 24 15:31:53 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 10012 byte(s)
Diff to previous 656
First step towards table management. Introduce a simple data
abstraction so that we replace the data a layer uses more easily
in the next step.

* Thuban/Model/data.py: New file with a simple data abstraction
that bundles shapefile and dbffile into one object.

* Thuban/Model/session.py (Session.OpenShapefile): New method to
open shapefiles and return a shape store object

* Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
object instead of a shapefile filename. This introduces a new
instance variable store holding the datastore. For intermediate
backwards compatibility keep the old instance variables.
(open_shapefile): Removed. No longer needed with the shape store.
(Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
get the shape store used by a layer.
(Layer.Destroy): No need to explicitly destroy the shapefile or
table anymore.

* Thuban/UI/mainwindow.py (MainWindow.AddLayer)
(MainWindow.AddLayer): Use the session's OpenShapefile method to
open shapefiles

* Thuban/Model/load.py (ProcessSession.start_layer): Use the
session's OpenShapefile method to open shapefiles

* test/test_classification.py
(TestClassification.test_classification): Use the session's
OpenShapefile method to open shapefiles and build the filename in
a more platform independed way

* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
Implement to have a session to use in the tests
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
(TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
session's OpenShapefile method to open shapefiles
(TestLayerLegend.setUp): Instantiate a session so that we can use
it to open shapefiles.
(TestLayerLegend.tearDown): Make sure that all references to
layers and session are removed otherwise we may get a resource
leak

* test/test_map.py (TestMapAddLayer.test_add_layer)
(TestMapWithContents.setUp): Instantiate a session so that we can
use it to open shapefiles.
(TestMapWithContents.tearDown): Make sure that all references to
layers, maps and sessions are removed otherwise we may get a
resource leak
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_save.py (SaveSessionTest.testSingleLayer): Use the
session's OpenShapefile method to open shapefiles
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_selection.py (TestSelection.tearDown): Make sure that
all references to the session and the selection are removed
otherwise we may get a resource leak
(TestSelection.get_layer): Instantiate a session so that we can
use it to open shapefiles.
("__main__"): use support.run_tests() so that more info about
uncollected garbage is printed

* test/test_session.py (TestSessionBase.tearDown)
(TestSessionWithContent.tearDown): Make sure that all references
to the session and layers are removed otherwise we may get a
resource leak
(TestSessionWithContent.setUp): Use the session's OpenShapefile
method to open shapefiles


Revision 656 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 15:50:27 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9845 byte(s)
Diff to previous 618
Added test for copying of classifications.


Revision 618 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 08:58:26 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9633 byte(s)
Diff to previous 610
Fix tests to use the renamed methods.  Still need to write tests for the
new methods.


Revision 610 - (view) (annotate) - [select for diffs]
Modified Fri Apr 4 13:56:59 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9612 byte(s)
Diff to previous 598
Rename Color.None to Color.Transparent.


Revision 598 - (view) (annotate) - [select for diffs]
Modified Thu Apr 3 11:37:10 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/test/test_classification.py
File length: 9494 byte(s)
Diff to previous 494
Use support.run_tests instead of
unittest.main so we get memory leak information
(TestClassification.test_classification): Call the layer's Destroy
method to fix a memory leak.


Revision 494 - (view) (annotate) - [select for diffs]
Modified Mon Mar 10 10:45:33 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9459 byte(s)
Diff to previous 482
New and improved tests.


Revision 482 - (view) (annotate) - [select for diffs]
Modified Thu Mar 6 16:47:02 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 9119 byte(s)
Diff to previous 446
Fixed and added tests for the classification classes.


Revision 446 - (view) (annotate) - [select for diffs]
Modified Thu Feb 27 16:05:10 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 2420 byte(s)
Diff to previous 409
Use new Classification and Group classes.


Revision 409 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 16:50:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 2409 byte(s)
Diff to previous 395
Updated the tests to use the new functions that are in the respective classes.


Revision 395 - (view) (annotate) - [select for diffs]
Modified Mon Feb 10 15:28:02 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 2974 byte(s)
Diff to previous 369
fix tests to work with new code changes.


Revision 369 - (view) (annotate) - [select for diffs]
Added Mon Jan 27 11:53:51 2003 UTC (22 years, 1 month ago) by jonathan
Original Path: trunk/thuban/test/test_classification.py
File length: 2763 byte(s)
tests for Classification class


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