# Path: hamster_lib/reports.py
# class ReportWriter(object):
# class TSVWriter(ReportWriter):
# class ICALWriter(ReportWriter):
# class XMLWriter(ReportWriter):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def write_report(self, facts):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact):
#     def _close(self):
#     def __init__(self, path):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def _close(self):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def _close(self):


import csv
import datetime
import os.path
import xml
import pytest
from hamster_lib import reports
from icalendar import Calendar
from six import text_type
# -*- encoding: utf-8 -*-

from __future__ import unicode_literals




# Fixtures
@pytest.fixture
def path(tmpdir):
    path = tmpdir.mkdir('reports').join('report.csv').strpath
    return text_type(path)


@pytest.fixture
def report_writer(path):

# Path: hamster_lib/reports.py
# class ReportWriter(object):
# class TSVWriter(ReportWriter):
# class ICALWriter(ReportWriter):
# class XMLWriter(ReportWriter):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def write_report(self, facts):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact):
#     def _close(self):
#     def __init__(self, path):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def _close(self):
#     def __init__(self, path, datetime_format="%Y-%m-%d %H:%M:%S"):
#     def _fact_to_tuple(self, fact):
#     def _write_fact(self, fact_tuple):
#     def _close(self):


# Path: tests/hamster_lib/test_reports.py
import csv
import datetime
import os.path
import xml
import pytest
from hamster_lib import reports
from icalendar import Calendar
from six import text_type

# -*- encoding: utf-8 -*-

from __future__ import unicode_literals




# Fixtures
@pytest.fixture
def path(tmpdir):
    path = tmpdir.mkdir('reports').join('report.csv').strpath
    return text_type(path)


@pytest.fixture
def report_writer(path):

    return reports.ReportWriter(path)