test suite cleanup
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 8 Jan 2008 18:57:33 +0000 (12:57 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jan 2008 20:08:02 +0000 (14:08 -0600)
commit5290ec559679f80fa3abb8845581e9634d26c649
tree1fe40d45f9e36bcfef911264cef70181899e20b4
parent6530b683f8549f3a5cd703af3108ddac7e9b1636
test suite cleanup

Many of the tests were failing or putting warnings
because a valid systempreferences table is
usaully absent by the time 'make test' is run.

Fortunately, only a few modules try to invoke
C4::Context->preference during module initialization,
so added to the test suite override_context_prefs.pm,
which replaces preference() with a sub to return
testing values for three variables: 'dateformat',
'marcflavour', and 'LibraryName'.

Also fixed bug in t/Boolean.t

With this patch and the patch to move the DB-dependent
tests off to the side for the moment, 'make test'
now runs cleanly, at least on Debian.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
23 files changed:
C4/Context.pm
C4/Output.pm
t/Accounts.t
t/AuthoritiesMarc.t
t/Biblio.t
t/Boolean.t
t/Breeding.t
t/Circulation.t
t/Date.t
t/Dates.t
t/Items.t
t/Letters.t
t/Log.t
t/Members.t
t/NewsChannels.t
t/Overdues.t
t/Print.t
t/Reserves.t
t/Search.t
t/Serials.t
t/Suggestions.t
t/Z3950.t
t/override_context_prefs.pm [new file with mode: 0644]