"""Tests for the init file in conf folder.""" import os from unittest.mock import patch from feed_ingestion import getconf def test_getconf_unset_env(): """Test getconf.""" test_only_unset = getconf('test')['test'] assert test_only_unset is None @patch.dict('os.environ', {'TEST_ONLY_UNSET': 'testing123'}) def test_getconf_set_env(): """Test getconf.""" assert 'TEST_ONLY_UNSET' in os.environ test_only_set = getconf('test')['test'] assert test_only_set == 'testing123'