import os from dbt_orch_utils.templates import jinja_environment, facts_prod_mapping common_kwargs = dict(templates_path=os.path.dirname(os.path.realpath(__file__))) def test_soundcloud_raw_joins_qa(snapshot): env = jinja_environment(ref_function=facts_prod_mapping('facts.qa'), **common_kwargs) template = env.get_template('soundcloud_raw_joins.jinja') result = template.render() snapshot.assert_match(result, 'expected') def test_soundcloud_raw_joins_default(snapshot): env = jinja_environment(**common_kwargs) template = env.get_template('soundcloud_raw_joins.jinja') result = template.render() snapshot.assert_match(result, 'expected')