Commit Graph

49 Commits

Author SHA1 Message Date
Vassilii Khachaturov
62ca742313 6951: import/export test suite runner broken
Ported from gramps34 my commits r22744,5.
Adjusted for gramps40 path layout changes.

svn: r22746
2013-07-28 13:50:03 +00:00
Vassilii Khachaturov
32b559c623 Reviving RunAllTests.py on gramps40/trunk
Porting from gramps34 my fix for 6935, 6937, 6938.

Import with full "gramps." qualification from the tests,
to overcome the relative import problem (see bug# 6938 for context).

All testing code has been adjusted to the filename and paths
changes since gramps34.
Same as on gramps34, one test fails still, will investigate if
it is a test or a code bug:
    ERROR: test_buffer_recall
    (ErrorReportAssistant_Test.ErrorReportAssistantTest)
    Test that simple recall of messages works.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "./GrampsLogger/ErrorReportAssistant_Test.py", line 60, in
    test_buffer_recall
        rotate_handler=rh)
      File "../gramps/gui/logger/_errorreportassistant.py", line 81, in
    __init__
        self.build_page1()
      File "../gramps/gui/logger/_errorreportassistant.py", line 267, in
    build_page1
        self._reset_error_details()
      File "../gramps/gui/logger/_errorreportassistant.py", line 178, in
    _reset_error_details
        self._error_detail.get_record()))
    AttributeError: 'str' object has no attribute 'get_record'

svn: r22729
2013-07-24 06:23:33 +00:00
Vassilii Khachaturov
8eed4a3d0d 6923: runtest.sh broken in gramps40/trunk
Merged fix from trunk:
    Fixed the file locations to work for the gramps40/trunk layout.

    Also porting my fix from gramps34 branch for
    6837: runtest.sh runs some reports that no longer exist

    git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@22684 4ae1f11a-8b86-4847-b8af-ab372f36d1fd

svn: r22686
2013-07-16 11:21:07 +00:00
Paul Franklin
58fdfa622b added GPL "boilerplate", SVN properties, and SVN Id line as needed
svn: r22597
2013-06-24 19:30:56 +00:00
Nick Hall
760806a7f9 Changes to imports - part 8
svn: r20493
2012-10-02 21:59:59 +00:00
Benny Malengier
faed8a9f5f Start convertion to introspection. Flat models work, as does relationship view
svn: r19858
2012-06-17 21:25:37 +00:00
Benny Malengier
ad0e1c0a29 correct syntax error
svn: r16438
2011-01-22 16:46:34 +00:00
Gerald Britton
1f2469b09f Simplify with built-in functions where possible. e.g.
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)

These changes reduce source code size and complexity and produce some minor performance gains

svn: r14104
2010-01-21 18:42:53 +00:00
Doug Blank
0f20544be3 Changes to allow GrampsDb tests to run
svn: r13893
2009-12-23 15:48:01 +00:00
Rob G. Healey
890138b294 Deleted the src/Models directory and removed the only file that I could find that was using it.
svn: r12497
2009-04-30 03:50:17 +00:00
Gerald Britton
2671a8cd50 Replace "== None" and "!= None" with "is None" and "is not None", respectively
svn: r12098
2009-02-23 19:11:46 +00:00
Brian Matherly
2e9a488e3e Refactor export plugin framework. All importers and exporters are now plugins.
svn: r11243
2008-11-04 04:12:51 +00:00
Brian Matherly
e9c1b1de89 Remove GRDB export code. GRDB export is not supported.
svn: r11144
2008-10-14 11:54:42 +00:00
Raphael Ackermann
c962d5e6e1 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
2008-02-24 13:55:55 +00:00
Raphael Ackermann
90f883e46d 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* 143 files
    * test/try_tree_model.py
    * windows/nsis/gcheck.py
    imports cleanup

svn: r10055
2008-02-18 20:07:09 +00:00
Richard Taylor
190d20fcee fix test case to work with reindex_reference_map
svn: r7795
2006-12-13 10:03:52 +00:00
Alex Roitman
9b4864a9a0 Update
svn: r7704
2006-11-26 08:08:06 +00:00
Alex Roitman
8b53da15c7 New file
svn: r7692
2006-11-25 19:39:56 +00:00
Martin Hawlisch
ad6e2d53af another bsddb test
svn: r7691
2006-11-25 19:17:45 +00:00
Martin Hawlisch
4df096ce6f new testcase
svn: r7685
2006-11-24 21:44:32 +00:00
Alex Roitman
9aeb975d1c * test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map):
Properly define lambda to fake the _update_reference_map method.


svn: r7678
2006-11-24 05:39:14 +00:00
Alex Roitman
5dd18318f9 2006-11-23 Alex Roitman <shura@gramps-project.org>
* test/GrampsDb/GrampsDbTestBase.py (tearDown): Close database at
	the end of test.



svn: r7677
2006-11-24 05:21:57 +00:00
Don Allingham
220ccd309a 2006-11-15 Don Allingham <don@gramps-project.org>
* data/gramps.schemas.in: default transactions to off
	* src/Config/_GrampsConfigKeys.py: default transaction to off
	* src/Editors/_EditFamily.py: remove dead code
	* src/plugins/DetDescendantReport.py: remove dead code



svn: r7631
2006-11-16 04:02:28 +00:00
Martin Hawlisch
682ea93e48 * test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). Hmmm, that worked without sometime back.
svn: r7615
2006-11-11 21:46:22 +00:00
Alex Roitman
3fe3482efb In .:
2006-05-01  Alex Roitman  <shura@gramps-project.org>
	* various: merge changes from gramps20.

In po:
2006-05-01  Alex Roitman  <shura@gramps-project.org>
	* POTFILES.in: Add new file.



svn: r6504
2006-05-01 21:11:26 +00:00
Alex Roitman
b3798a9f30 Remove .cvsignore files from all directories.
svn: r6034
2006-03-02 19:30:29 +00:00
Alex Roitman
2b96e371e1 * various: merge changes made in gramps20 up until R2_0_10_real tag.
* configure.in: Bump up release number.
* Release: Version 2.0.10 "Holy Hand Grenade of Antioch" released.


svn: r6011
2006-02-28 19:54:35 +00:00
Richard Taylor
f6ae3f18c2 add test code for cursor
svn: r5958
2006-02-19 16:11:18 +00:00
Richard Taylor
207669f234 trivial fixed to fast models
svn: r5873
2006-02-03 15:53:20 +00:00
Richard Taylor
754231f151 added initial fast model implementation
svn: r5872
2006-02-03 15:49:59 +00:00
Richard Taylor
90247368d9 make ref update optional
svn: r5780
2006-01-17 21:10:20 +00:00
Richard Taylor
d62d7ae447 added unittest for
ErrorReportAssistant


svn: r5679
2006-01-06 12:17:32 +00:00
Richard Taylor
cfb8cc47a4 enabled rotate_handler output.
svn: r5674
2006-01-05 19:07:27 +00:00
Richard Taylor
ce52de5804 added initial logging framwork.
svn: r5673
2006-01-05 16:02:27 +00:00
Alex Roitman
6fafacf793 * test/RunAllTests.py: Change header.
* src/EventEdit.py: Fix build_ methods.

* src/DisplayState.py: window management improvements


svn: r5620
2005-12-23 00:40:35 +00:00
Richard Taylor
b2b6cb0ad5 * src/EditPlace.py: changed display_references to use find_backlink_handles
* src/EditRepository.py: modified to use  find_backlink_handles and fixed subtle bug
	* src/RelLib/_Source.py: added reporef_list to referent object lists so that backref
	are put in reference_map
	* test/GrampsDb/GrampsDbBase_Test.py: added unittest for source/reference backlinks
	* test/GrampsDb/GrampsDbTestBase.py: added unittest for source/reference backlinks


svn: r5616
2005-12-22 12:02:06 +00:00
Richard Taylor
9eb1f99b86 move database code into new package
svn: r5598
2005-12-21 11:27:05 +00:00
Richard Taylor
1a102afbd1 removed get_backlink_handles from RelLib
svn: r5592
2005-12-20 14:31:01 +00:00
Richard Taylor
bd1b437256 * src/RelLib.py: added get_backlink_handles method to PrimaryObject
* test/GrampsDbBase_Test.py: factored out common db test methods
* test/GrampsDbTestBase.py: new base class for unittests that
   need to create database records
* test/RelLib_Test.py: unittest for the
* get_backlink_handles method


svn: r5583
2005-12-19 13:45:05 +00:00
Richard Taylor
56d3c6658c tests and fixes for reference_map.
svn: r5576
2005-12-17 22:16:03 +00:00
Richard Taylor
9f891c2913 moved to using in keys rather than class names in the referece_map table
svn: r5575
2005-12-17 22:02:48 +00:00
Alex Roitman
d35b4ea7b0 Update
svn: r5573
2005-12-17 21:26:01 +00:00
Richard Taylor
d6b21a628f fixed tiny typo
svn: r5572
2005-12-17 21:19:41 +00:00
Richard Taylor
fff5c3e595 * src/GrampsDbBase.py: fixed UNDO buffer issue
* test/GrampsDbBase_Test.py: improved performance test
	* test/RunAllTests.py: added -p cmdline flag


svn: r5571
2005-12-17 21:13:45 +00:00
Richard Taylor
e102387e98 fix for cursor set
svn: r5570
2005-12-17 20:13:23 +00:00
Richard Taylor
e68a559e74 added a crude performance test.
svn: r5564
2005-12-16 16:31:38 +00:00
Richard Taylor
7dfe9ebe05 further work to complete the reference_map implementation.
svn: r5563
2005-12-16 11:59:13 +00:00
Alex Roitman
b08882b5b2 * various: merge changes made in gramps20 up until R2_0_9 tag.
svn: r5544
2005-12-13 02:07:16 +00:00
Alex Roitman
2f962b5f96 merge changes from gramps20
svn: r5482
2005-12-06 06:38:09 +00:00