@@ -18,6 +18,7 @@ import generator.pitch
|
||||
import generator.playback
|
||||
import tests.arrangement_fixtures
|
||||
import tests.rhythm_fixtures
|
||||
import tests.scale_fixtures
|
||||
import tests.test_musicxml
|
||||
|
||||
def xml_harmony(root='C', kind='major', offset=0):
|
||||
@@ -170,6 +171,7 @@ class PartGenerationTests(unittest.TestCase):
|
||||
self.assertIn(str(source / (name + '.xml')), str(raised.exception))
|
||||
self.assertEqual([p.name for p in output.iterdir()], ['sentinel'])
|
||||
def test_pipeline_parses_and_normalizes_each_source_once(self):
|
||||
self.enterContext(unittest.mock.patch('generator.scales.library.load_library', return_value=tests.scale_fixtures.library()))
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = pathlib.Path(directory)
|
||||
for category, name in (('songs', 'song'), ('songs', 'other')):
|
||||
|
||||
Reference in New Issue
Block a user