Sepearate Generation

This commit is contained in:
khodowany
2026-10-04 09:05:25 -05:00
parent e8ac7b5edd
commit 8fdd736e13
56 changed files with 1739 additions and 341 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Small synthetic catalogs for infrastructure tests, never production fallback.
Dependency/process tests separately exercise the real data path without mocks.
"""
from unittest.mock import patch
from generator import production, vocabulary
from tests import rhythm_fixtures, scale_fixtures, solo_fixtures
def install(test):
resources=vocabulary.load()
libraries=(scale_fixtures.library(),solo_fixtures.library(),rhythm_fixtures.library())
tree=production.generate_tree
def serial(*args,**kwargs):
kwargs['jobs']=1
return tree(*args,**kwargs)
test.enterContext(patch('generator.production.generate_tree',side_effect=serial))
test.enterContext(patch('generator.vocabulary.load',return_value=resources))
test.enterContext(patch('generator.production._solo_libraries',return_value=libraries))
test.enterContext(patch('generator.production._resource_key',return_value={'fixture':'independently authored synthetic catalogs'}))