# Path: invtool/tests/test_data.py
# TEST_DESCRIPTION = '"This is a description"'
# 
# TEST_STR = lambda: random_str()


from invtool.tests.test_data import TEST_DESCRIPTION, TEST_STR
from datetime import datetime
import argparse
    def extract_pk(nas):
        return _extract_pk(nas, field_name)

    return add_detail_pk_argument, extract_pk, lambda: None


def delete_pk_argument(field_name, rdtype):
    # Required has no affect.
    def add_delete_pk_argument(parser, **kwargs):
        parser.add_argument(
            '--pk', default=None, type=int, dest='pk',
            help="Delete the {0} record with the database primary key of "
            "'pk'".format(rdtype), required=True
        )
        return parser

    def extract_pk(nas):
        return _extract_pk(nas, field_name)

    return add_delete_pk_argument, extract_pk, lambda: None


def description_argument(field_name):
    def add_desc_arg(parser, **kwargs):
        parser.add_argument(
            '--description', default="", type=str, dest='description',
            help="Tell us a little about this record", required=False
        )

    def test_data():

# Path: invtool/tests/test_data.py
# TEST_DESCRIPTION = '"This is a description"'
# 
# TEST_STR = lambda: random_str()


# Path: invtool/lib/options.py
from invtool.tests.test_data import TEST_DESCRIPTION, TEST_STR
from datetime import datetime
import argparse

    def extract_pk(nas):
        return _extract_pk(nas, field_name)

    return add_detail_pk_argument, extract_pk, lambda: None


def delete_pk_argument(field_name, rdtype):
    # Required has no affect.
    def add_delete_pk_argument(parser, **kwargs):
        parser.add_argument(
            '--pk', default=None, type=int, dest='pk',
            help="Delete the {0} record with the database primary key of "
            "'pk'".format(rdtype), required=True
        )
        return parser

    def extract_pk(nas):
        return _extract_pk(nas, field_name)

    return add_delete_pk_argument, extract_pk, lambda: None


def description_argument(field_name):
    def add_desc_arg(parser, **kwargs):
        parser.add_argument(
            '--description', default="", type=str, dest='description',
            help="Tell us a little about this record", required=False
        )

    def test_data():

        return 'description', TEST_DESCRIPTION