diff options
author | Eric Lin <anselor@gmail.com> | 2018-04-30 16:07:29 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-04-30 16:07:29 -0400 |
commit | e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569 (patch) | |
tree | 1d6b6788a54941a307506fff6a7af4fcc474b820 /tests/pyscript | |
parent | ab7ac493950040565d933ed02deaeb778ef977e3 (diff) | |
download | cmd2-git-e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569.tar.gz |
Added more tests exercising the pyscript bridge.
Diffstat (limited to 'tests/pyscript')
-rw-r--r-- | tests/pyscript/media_movies_add1.py | 1 | ||||
-rw-r--r-- | tests/pyscript/media_movies_list4.py | 2 | ||||
-rw-r--r-- | tests/pyscript/media_movies_list5.py | 1 | ||||
-rw-r--r-- | tests/pyscript/media_movies_list6.py | 1 | ||||
-rw-r--r-- | tests/pyscript/media_movies_list7.py | 1 |
5 files changed, 5 insertions, 1 deletions
diff --git a/tests/pyscript/media_movies_add1.py b/tests/pyscript/media_movies_add1.py new file mode 100644 index 00000000..a9139cb1 --- /dev/null +++ b/tests/pyscript/media_movies_add1.py @@ -0,0 +1 @@ +app.media.movies.add('My Movie', 'PG-13', director=('George Lucas', 'J. J. Abrams')) diff --git a/tests/pyscript/media_movies_list4.py b/tests/pyscript/media_movies_list4.py index 0124bbcb..1165b0c5 100644 --- a/tests/pyscript/media_movies_list4.py +++ b/tests/pyscript/media_movies_list4.py @@ -1 +1 @@ -app.media.movies.list()
\ No newline at end of file +app.media.movies.list(actor='Mark Hamill') diff --git a/tests/pyscript/media_movies_list5.py b/tests/pyscript/media_movies_list5.py new file mode 100644 index 00000000..962b1516 --- /dev/null +++ b/tests/pyscript/media_movies_list5.py @@ -0,0 +1 @@ +app.media.movies.list(actor=('Mark Hamill', 'Carrie Fisher')) diff --git a/tests/pyscript/media_movies_list6.py b/tests/pyscript/media_movies_list6.py new file mode 100644 index 00000000..5f8d3654 --- /dev/null +++ b/tests/pyscript/media_movies_list6.py @@ -0,0 +1 @@ +app.media.movies.list(rating='PG') diff --git a/tests/pyscript/media_movies_list7.py b/tests/pyscript/media_movies_list7.py new file mode 100644 index 00000000..bb0e28bb --- /dev/null +++ b/tests/pyscript/media_movies_list7.py @@ -0,0 +1 @@ +app.media.movies.list(rating=('PG', 'PG-13')) |