# Path: test/_common.py
# def print_test_result(expected, actual, error=None):
#     print(f"[expected]\n{expected}\n")
#     print(f"[actual]\n{actual}\n")
# 
#     if error:
#         print(error, file=sys.stderr)
# 
#     print("----------------------------------------")
# 
# Path: test/data.py
# TIME = datetime.datetime(2017, 1, 1, 0, 0, 0)
# INF = float("inf")
# NAN = float("nan")


import collections
import datetime
import json
import elasticsearch
import pytest
import pytablewriter as ptw
from decimal import Decimal
from .._common import print_test_result
from ..data import headers, value_matrix
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""






inf = Decimal("Infinity")
nan = None

Data = collections.namedtuple("Data", "table header value expected")

empty_test_data_list = [
    Data(table="dummy", header=[], value=[], expected=None),
    Data(table="dummy", header=headers, value=[], expected=None),
]
exception_test_data_list = [

# Path: test/_common.py
# def print_test_result(expected, actual, error=None):
#     print(f"[expected]\n{expected}\n")
#     print(f"[actual]\n{actual}\n")
# 
#     if error:
#         print(error, file=sys.stderr)
# 
#     print("----------------------------------------")
# 
# Path: test/data.py
# TIME = datetime.datetime(2017, 1, 1, 0, 0, 0)
# INF = float("inf")
# NAN = float("nan")


# Path: test/writer/test_elasticsearch_writer.py
import collections
import datetime
import json
import elasticsearch
import pytest
import pytablewriter as ptw
from decimal import Decimal
from .._common import print_test_result
from ..data import headers, value_matrix

"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""






inf = Decimal("Infinity")
nan = None

Data = collections.namedtuple("Data", "table header value expected")

empty_test_data_list = [
    Data(table="dummy", header=[], value=[], expected=None),
    Data(table="dummy", header=headers, value=[], expected=None),
]
exception_test_data_list = [

    Data(table="", header=headers, value=value_matrix, expected=ptw.EmptyTableNameError),