From 9d097738c696f6f01a3db600d77b7c67f5d618bd Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Dec 13 2018 16:01:43 +0000 Subject: Add a smoke test --- diff --git a/tests/test_imports.yml b/tests/test_imports.yml new file mode 100644 index 0000000..e4e5539 --- /dev/null +++ b/tests/test_imports.yml @@ -0,0 +1,15 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - atomic + - container + tasks: + - name: Test block + block: + - name: Assert all top-level sub-modules can be imported in Python 3 + shell: python3 -c "from requests import *" + - name: Assert all top-level sub-modules can be imported in Python 2 + shell: python2 -c "from requests import *" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..ed35a39 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_imports.yml