mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Try to make the python bindings tests work with an out of source tree build.
This is almost ok, but it uses the schemas from the install tree. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23457 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -11,17 +11,19 @@ GNC_TEST_DEPS = --gnc-module-dir ${top_builddir}/src/engine \
|
||||
--library-dir ${top_builddir}/src/engine \
|
||||
--library-dir ${top_builddir}/src/backend/xml \
|
||||
--library-dir ${top_builddir}/src/backend/sql \
|
||||
--library-dir ${top_builddir}/src/app-utils
|
||||
--library-dir ${top_builddir}/src/app-utils \
|
||||
--library-dir ${top_builddir}/src/test-core
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
GNC_BUILDDIR=`\cd ${top_builddir} && pwd` \
|
||||
PYTHON=${PYTHON} \
|
||||
PYTHONPATH=$(PYTHONPATH):$(top_builddir)/src/optional/python-bindings \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_builddir)/src/optional/python-bindings \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_builddir)/src/optional/python-bindings/.libs \
|
||||
PYTHONPATH=$(PYTHONPATH):$(top_srcdir)/src/optional/python-bindings/tests \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_srcdir)/src/optional/python-bindings/tests \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_builddir)/src/test-core/ \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_srcdir)/src/test-core/ \
|
||||
PYTHONPATH=$$PYTHONPATH:$(top_builddir)/src/test-core/.libs \
|
||||
XDG_DATA_DIRS=${datadir}:$$XDG_DATA_DIRS:${GNC_SYSTEM_XDG_DATA_DIRS} \
|
||||
$(shell $(top_builddir)/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
|
||||
|
||||
## We borrow guile's convention and use @-...-@ as the substitution
|
||||
|
||||
@@ -41,7 +41,7 @@ class BusinessSession( BookSession ):
|
||||
self.invoice.AddEntry(entry)
|
||||
|
||||
self.invoice.PostToAccount(self.receivable,
|
||||
self.today, self.today, "", True)
|
||||
self.today, self.today, "", True, False)
|
||||
|
||||
class TestBusiness( BusinessSession ):
|
||||
def test_equal(self):
|
||||
|
||||
Reference in New Issue
Block a user