def test_skxray_meta_generation(): global OUTPUT_DIR, SOURCE_DIR conda_skeletor.execute_programmatically(SKELETOR_CONFIG_PATH, SOURCE_DIR, OUTPUT_DIR) with open(os.path.join(OUTPUT_DIR, 'meta.yaml'), 'r') as f: generated_meta_yaml = f.read() assert generated_meta_yaml == TARGET_META_YAML
def generate_programmatically(source_dir, skeletor_config_path): output_dir = tempfile.mkdtemp() conda_skeletor.execute_programmatically( skeletor_config_path, source_dir, output_dir) return output_dir