# 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 pytest
import pytablewriter as ptw
from collections import OrderedDict
from decimal import Decimal
from pytablereader import SqliteFileLoader
from sqliteschema import SQLiteSchemaExtractor
from tabledata import TableData
from ..._common import print_test_result
from ...data import headers, mix_header_list, mix_value_matrix, value_matrix, value_matrix_iter
                    ("Field", "a"),
                    ("Index", False),
                    ("Type", "TEXT"),
                    ("Null", "YES"),
                    ("Key", ""),
                    ("Default", "NULL"),
                    ("Extra", ""),
                ]
            ),
            OrderedDict(
                [
                    ("Field", "b"),
                    ("Index", False),
                    ("Type", "INTEGER"),
                    ("Null", "YES"),
                    ("Key", ""),
                    ("Default", "NULL"),
                    ("Extra", ""),
                ]
            ),
        ]

    @pytest.mark.parametrize(
        ["table", "header", "value", "expected"],
        [[data.table, data.header, data.value, data.expected] for data in empty_test_data_list],
    )
    def test_smoke_empty(self, tmpdir, table, header, value, expected):
        writer = ptw.SqliteTableWriter()
        writer.open(":memory:")
        writer.table_name = table

# 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/binary/test_sqlite_writer.py
import collections
import pytest
import pytablewriter as ptw
from collections import OrderedDict
from decimal import Decimal
from pytablereader import SqliteFileLoader
from sqliteschema import SQLiteSchemaExtractor
from tabledata import TableData
from ..._common import print_test_result
from ...data import headers, mix_header_list, mix_value_matrix, value_matrix, value_matrix_iter

                    ("Field", "a"),
                    ("Index", False),
                    ("Type", "TEXT"),
                    ("Null", "YES"),
                    ("Key", ""),
                    ("Default", "NULL"),
                    ("Extra", ""),
                ]
            ),
            OrderedDict(
                [
                    ("Field", "b"),
                    ("Index", False),
                    ("Type", "INTEGER"),
                    ("Null", "YES"),
                    ("Key", ""),
                    ("Default", "NULL"),
                    ("Extra", ""),
                ]
            ),
        ]

    @pytest.mark.parametrize(
        ["table", "header", "value", "expected"],
        [[data.table, data.header, data.value, data.expected] for data in empty_test_data_list],
    )
    def test_smoke_empty(self, tmpdir, table, header, value, expected):
        writer = ptw.SqliteTableWriter()
        writer.open(":memory:")
        writer.table_name = table

        writer.headers = header