import os
import subprocess
import sys
from cj2pgsql.main import run
from cj2pgsql.modules.arg_parser import Parser
import pytest


def test_single_import(arguments):
    parser = Parser()
    args = parser.parse_args(arguments)
    print("Args: ", " ".join(arguments))
    run(args)
