# Python imports
import base64
import json

# 3rd party imports
from django.db import connection
from django.test import TestCase

# Project imports
from register.models import RegistrationCenter
from register.tests.factories import RegistrationFactory
from reporting_api import create_test_data, reports, tasks, views
from reporting_api.data_pull import registrations_by_phone

BASE_URI = '/reporting/'
ELECTION_DAY_REPORT_REL_URI = 'election_day.json'
ELECTION_DAY_LOG_REL_URI = 'election_day_log.json'
REGISTRATIONS_REL_URI = 'registrations.json'

TEST_USERNAME = 'some_test_user'
TEST_PASSWORD = 'some_password'

NUM_REGISTRATIONS = 100
NUM_COPY_CENTERS = 3
NUM_NO_REG_CENTERS = 3


class TestReports(TestCase):
    def setUp(self):
        create_test_data.create(num_registrations=NUM_REGISTRATIONS,
                                num_copy_centers=NUM_COPY_CENTERS,
                                num_no_reg_centers=NUM_NO_REG_CENTERS)
        tasks.election_day()