Example #1
0
    def test_should_use_default_configuration_file_path_if_no_environment_variable_is_set(
            self, mock_environ):

        _determine_configuration_file_path()

        mock_environ.get.assert_called_with(
            ENVIRONMENT_VARIABLE_KEY_CONFIGURATION_FILE,
            CONFIGURATION_FILE_PATH)
    def test_should_return_actual_determined_file_path(self, mock_environ):

        mock_environ.get.return_value = 'path-to-configuration-file'

        actual_file_path = _determine_configuration_file_path()

        self.assertEqual('path-to-configuration-file', actual_file_path)
Example #3
0
    def test_should_return_actual_determined_file_path(self, mock_environ):

        mock_environ.get.return_value = 'path-to-configuration-file'

        actual_file_path = _determine_configuration_file_path()

        self.assertEqual('path-to-configuration-file', actual_file_path)
    def test_should_use_default_configuration_file_path_if_no_environment_variable_is_set(self, mock_environ):

        _determine_configuration_file_path()

        mock_environ.get.assert_called_with(ENVIRONMENT_VARIABLE_KEY_CONFIGURATION_FILE, CONFIGURATION_FILE_PATH)