summaryrefslogtreecommitdiff
path: root/tests/pyscript
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-02 19:11:28 -0700
committerkotfu <kotfu@kotfu.net>2018-05-02 19:11:28 -0700
commit9ade8ac377b90f36445aeec1de01b650bbad2283 (patch)
tree78dede898fec07147302ce188a67f7ce09485a8c /tests/pyscript
parentad634b2e7f68392727246f796647b92d67172011 (diff)
parente8d952574743c00e2116d24044220cbaa95cfb38 (diff)
downloadcmd2-git-9ade8ac377b90f36445aeec1de01b650bbad2283.tar.gz
Merge branch 'ply' of https://github.com/python-cmd2/cmd2 into ply
Diffstat (limited to 'tests/pyscript')
-rw-r--r--tests/pyscript/bar1.py1
-rw-r--r--tests/pyscript/foo1.py1
-rw-r--r--tests/pyscript/foo2.py1
-rw-r--r--tests/pyscript/foo3.py1
-rw-r--r--tests/pyscript/foo4.py8
-rw-r--r--tests/pyscript/help.py1
-rw-r--r--tests/pyscript/help_media.py1
-rw-r--r--tests/pyscript/media_movies_add1.py1
-rw-r--r--tests/pyscript/media_movies_add2.py1
-rw-r--r--tests/pyscript/media_movies_list1.py1
-rw-r--r--tests/pyscript/media_movies_list2.py1
-rw-r--r--tests/pyscript/media_movies_list3.py1
-rw-r--r--tests/pyscript/media_movies_list4.py1
-rw-r--r--tests/pyscript/media_movies_list5.py1
-rw-r--r--tests/pyscript/media_movies_list6.py1
-rw-r--r--tests/pyscript/media_movies_list7.py1
16 files changed, 23 insertions, 0 deletions
diff --git a/tests/pyscript/bar1.py b/tests/pyscript/bar1.py
new file mode 100644
index 00000000..c6276a87
--- /dev/null
+++ b/tests/pyscript/bar1.py
@@ -0,0 +1 @@
+app.bar('11', '22')
diff --git a/tests/pyscript/foo1.py b/tests/pyscript/foo1.py
new file mode 100644
index 00000000..6e345d95
--- /dev/null
+++ b/tests/pyscript/foo1.py
@@ -0,0 +1 @@
+app.foo('aaa', 'bbb', counter=3, trueval=True, constval=True)
diff --git a/tests/pyscript/foo2.py b/tests/pyscript/foo2.py
new file mode 100644
index 00000000..d4df7616
--- /dev/null
+++ b/tests/pyscript/foo2.py
@@ -0,0 +1 @@
+app.foo('11', '22', '33', '44', counter=3, trueval=True, constval=True)
diff --git a/tests/pyscript/foo3.py b/tests/pyscript/foo3.py
new file mode 100644
index 00000000..db69edaf
--- /dev/null
+++ b/tests/pyscript/foo3.py
@@ -0,0 +1 @@
+app.foo('11', '22', '33', '44', '55', '66', counter=3, trueval=False, constval=False)
diff --git a/tests/pyscript/foo4.py b/tests/pyscript/foo4.py
new file mode 100644
index 00000000..88fd3ce8
--- /dev/null
+++ b/tests/pyscript/foo4.py
@@ -0,0 +1,8 @@
+result = app.foo('aaa', 'bbb', counter=3)
+out_text = 'Fail'
+if result:
+ data = result.data
+ if 'aaa' in data.variable and 'bbb' in data.variable and data.counter == 3:
+ out_text = 'Success'
+
+print(out_text)
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_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_add2.py b/tests/pyscript/media_movies_add2.py
new file mode 100644
index 00000000..5c4617ae
--- /dev/null
+++ b/tests/pyscript/media_movies_add2.py
@@ -0,0 +1 @@
+app.media.movies.add('My Movie', 'PG-13', actor=('Mark Hamill'), director=('George Lucas', 'J. J. Abrams'))
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..1165b0c5
--- /dev/null
+++ b/tests/pyscript/media_movies_list4.py
@@ -0,0 +1 @@
+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'))