Browse Source

Move onthfly datadir_prefix

pull/203/head
Oliverpool 9 years ago
parent
commit
63927af99f
  1. 4
      test/test_songbook/onthefly/content.onthefly.yaml
  2. 3
      test/test_songbook/test_compilation.py

4
test/test_songbook/onthefly/content.onthefly.yaml

@ -1,6 +1,6 @@
book: book:
pictures: yes pictures: yes
datadir: ../content_datadir datadir: content_datadir
lang: en lang: en
template: default.tex template: default.tex
chords: chords:
@ -12,7 +12,7 @@ content:
- sort: - sort:
- songsection: Test of song section - songsection: Test of song section
- cwd: - cwd:
# relative to datadir # relative to datadir 'song' dir
path: ../content path: ../content
content: content:
- tex: foo.tex - tex: foo.tex

3
test/test_songbook/test_compilation.py

@ -165,7 +165,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
outputdir = os.path.dirname(base) outputdir = os.path.dirname(base)
outputname = os.path.basename(base) outputname = os.path.basename(base)
songbook = prepare_songbook(sbyaml, outputdir, outputname, datadir_prefix=outputdir) datadir_prefix = os.path.join(outputdir, '..')
songbook = prepare_songbook(sbyaml, outputdir, outputname, datadir_prefix=datadir_prefix)
songbook['_error'] = "fix" songbook['_error'] = "fix"
songbook['_cache'] = True songbook['_cache'] = True

Loading…
Cancel
Save