import importlib import pytest @pytest.mark.parametrize( "module_name, factory_name", [ ("daemon.seed_math_models", "gen_math_models"), ("daemon.seed_agents", "gen_agents"), ("daemon.seed_language", "gen_language"), ("daemon.seed_prophecy", "gen_prophecy"), ("daemon.seed_marketing", "gen_marketing"), ], ) def test_generators_produce_unique_samples(module_name, factory_name): module = importlib.import_module(module_name) factory = getattr(module, factory_name) sample = list(factory(50)) assert len(sample) == 50 assert len(set(sample)) == 50 assert all(isinstance(item, str) and item.strip() for item in sample)