From ab7ac493950040565d933ed02deaeb778ef977e3 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Sat, 28 Apr 2018 16:08:18 -0400 Subject: Added support for translating function positional and keyword arguments into argparse command positional and flag arguments. Added initial set of tests --- tests/pyscript/help.py | 1 + tests/pyscript/help_media.py | 1 + tests/pyscript/media_movies_list1.py | 1 + tests/pyscript/media_movies_list2.py | 1 + tests/pyscript/media_movies_list3.py | 1 + tests/pyscript/media_movies_list4.py | 1 + 6 files changed, 6 insertions(+) create mode 100644 tests/pyscript/help.py create mode 100644 tests/pyscript/help_media.py create mode 100644 tests/pyscript/media_movies_list1.py create mode 100644 tests/pyscript/media_movies_list2.py create mode 100644 tests/pyscript/media_movies_list3.py create mode 100644 tests/pyscript/media_movies_list4.py (limited to 'tests/pyscript') diff --git a/tests/pyscript/help.py b/tests/pyscript/help.py new file mode 100644 index 00000000..3f67793c --- /dev/null +++ b/tests/pyscript/help.py @@ -0,0 +1 @@ +app.help() \ No newline at end of file diff --git a/tests/pyscript/help_media.py b/tests/pyscript/help_media.py new file mode 100644 index 00000000..78025bdd --- /dev/null +++ b/tests/pyscript/help_media.py @@ -0,0 +1 @@ +app.help('media') diff --git a/tests/pyscript/media_movies_list1.py b/tests/pyscript/media_movies_list1.py new file mode 100644 index 00000000..0124bbcb --- /dev/null +++ b/tests/pyscript/media_movies_list1.py @@ -0,0 +1 @@ +app.media.movies.list() \ No newline at end of file diff --git a/tests/pyscript/media_movies_list2.py b/tests/pyscript/media_movies_list2.py new file mode 100644 index 00000000..83f6c8ff --- /dev/null +++ b/tests/pyscript/media_movies_list2.py @@ -0,0 +1 @@ +app.media().movies().list() \ No newline at end of file diff --git a/tests/pyscript/media_movies_list3.py b/tests/pyscript/media_movies_list3.py new file mode 100644 index 00000000..4fcf1288 --- /dev/null +++ b/tests/pyscript/media_movies_list3.py @@ -0,0 +1 @@ +app('media movies list') \ No newline at end of file diff --git a/tests/pyscript/media_movies_list4.py b/tests/pyscript/media_movies_list4.py new file mode 100644 index 00000000..0124bbcb --- /dev/null +++ b/tests/pyscript/media_movies_list4.py @@ -0,0 +1 @@ +app.media.movies.list() \ No newline at end of file -- cgit v1.2.1