Log of /branches/WIP-pyshapelib-bramz/test/test_classification.py
Parent Directory
|
Revision Log
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)
-
[selected]
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
,
to
selected 1907
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
,
to
selected 1907
(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
,
to
selected 1907
(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
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
,
to
selected 1907
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
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.