# coding: utf-8

import unittest
import os
import logging

from niamoto.testing import set_test_path

set_test_path()

from niamoto import log

log.STREAM_LOGGING_LEVEL = logging.CRITICAL
log.FILE_LOGGING_LEVEL = logging.DEBUG

from niamoto.conf import settings, NIAMOTO_HOME
from niamoto.data_publishers.occurrence_data_publisher import \
    OccurrenceDataPublisher, OccurrenceLocationPublisher
from niamoto.testing.test_database_manager import TestDatabaseManager
from niamoto.data_providers.csv_provider import CsvDataProvider
from niamoto.testing.base_tests import BaseTestNiamotoSchemaCreated

TEST_OCCURRENCE_CSV = os.path.join(
    NIAMOTO_HOME,
    'data',
    'csv',
    'occurrences.csv',
)


class TestOccurrencesPublisher(BaseTestNiamotoSchemaCreated):
 def tearDown(self):
     shutil.rmtree(self.HOME_PATH)
     set_test_path()