Browse Source

Let test_content aside while debugging

pull/184/head
Oliverpool 9 years ago
parent
commit
771fb0e905
  1. 0
      test/ttest_content/__init__.py
  2. 0
      test/ttest_content/cwd.control
  3. 0
      test/ttest_content/cwd.source
  4. 0
      test/ttest_content/cwd_list.control
  5. 0
      test/ttest_content/cwd_list.source
  6. 0
      test/ttest_content/datadir/custom_list.json
  7. 0
      test/ttest_content/datadir/songs/chordpro.csg
  8. 0
      test/ttest_content/datadir/songs/exsong.sg
  9. 0
      test/ttest_content/datadir/songs/intersong.is
  10. 0
      test/ttest_content/datadir/songs/jsonlist.json
  11. 0
      test/ttest_content/datadir/songs/subdir/chordpro.csg
  12. 0
      test/ttest_content/datadir/songs/texfile.tex
  13. 0
      test/ttest_content/datadir/songs/texsong.tsg
  14. 0
      test/ttest_content/glob.control
  15. 0
      test/ttest_content/glob.source
  16. 0
      test/ttest_content/include.control
  17. 0
      test/ttest_content/include.source
  18. 0
      test/ttest_content/sections.control
  19. 0
      test/ttest_content/sections.source
  20. 0
      test/ttest_content/sections_short.control
  21. 0
      test/ttest_content/sections_short.source
  22. 0
      test/ttest_content/songs.control
  23. 0
      test/ttest_content/songs.source
  24. 0
      test/ttest_content/songsection.control
  25. 0
      test/ttest_content/songsection.source
  26. 0
      test/ttest_content/sorted.control
  27. 0
      test/ttest_content/sorted.source
  28. 12
      test/ttest_content/test_content.py
  29. 0
      test/ttest_content/tex.control
  30. 0
      test/ttest_content/tex.source

0
test/test_content/__init__.py → test/ttest_content/__init__.py

0
test/test_content/cwd.control → test/ttest_content/cwd.control

0
test/test_content/cwd.source → test/ttest_content/cwd.source

0
test/test_content/cwd_list.control → test/ttest_content/cwd_list.control

0
test/test_content/cwd_list.source → test/ttest_content/cwd_list.source

0
test/test_content/datadir/custom_list.json → test/ttest_content/datadir/custom_list.json

0
test/test_content/datadir/songs/chordpro.csg → test/ttest_content/datadir/songs/chordpro.csg

0
test/test_content/datadir/songs/exsong.sg → test/ttest_content/datadir/songs/exsong.sg

0
test/test_content/datadir/songs/intersong.is → test/ttest_content/datadir/songs/intersong.is

0
test/test_content/datadir/songs/jsonlist.json → test/ttest_content/datadir/songs/jsonlist.json

0
test/test_content/datadir/songs/subdir/chordpro.csg → test/ttest_content/datadir/songs/subdir/chordpro.csg

0
test/test_content/datadir/songs/texfile.tex → test/ttest_content/datadir/songs/texfile.tex

0
test/test_content/datadir/songs/texsong.tsg → test/ttest_content/datadir/songs/texsong.tsg

0
test/test_content/glob.control → test/ttest_content/glob.control

0
test/test_content/glob.source → test/ttest_content/glob.source

0
test/test_content/include.control → test/ttest_content/include.control

0
test/test_content/include.source → test/ttest_content/include.source

0
test/test_content/sections.control → test/ttest_content/sections.control

0
test/test_content/sections.source → test/ttest_content/sections.source

0
test/test_content/sections_short.control → test/ttest_content/sections_short.control

0
test/test_content/sections_short.source → test/ttest_content/sections_short.source

0
test/test_content/songs.control → test/ttest_content/songs.control

0
test/test_content/songs.source → test/ttest_content/songs.source

0
test/test_content/songsection.control → test/ttest_content/songsection.control

0
test/test_content/songsection.source → test/ttest_content/songsection.source

0
test/test_content/sorted.control → test/ttest_content/sorted.control

0
test/test_content/sorted.source → test/ttest_content/sorted.source

12
test/test_content/test_content.py → test/ttest_content/test_content.py

@ -7,8 +7,10 @@ import os
import unittest
import json
import yaml
from patacrep.songs import DataSubpath, DEFAULT_CONFIG
from patacrep import content, files
from patacrep import content, encoding, files, pkg_datapath
from patacrep.content import song, section, songsection, tex
from .. import logging_reduced
@ -95,10 +97,16 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
def _generate_config(cls):
"""Generate the config to process the content"""
config = DEFAULT_CONFIG.copy()
# Load the default songbook config
default_songbook_path = pkg_datapath('templates', 'default_songbook.sb.yml')
with encoding.open_read(default_songbook_path) as default_songbook_file:
config = yaml.load(default_songbook_file)
#config = DEFAULT_CONFIG.copy()
datadirpaths = [os.path.join(os.path.dirname(__file__), 'datadir')]
# todo : yaml and testing?
config['datadir'] = datadirpaths
config['_songdir'] = [

0
test/test_content/tex.control → test/ttest_content/tex.control

0
test/test_content/tex.source → test/ttest_content/tex.source

Loading…
Cancel
Save