A collection of classes and commands for automated command line scripting using Python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Shawn Davis c659b7c999 Added pgsql.sql command for scripting raw SQL. 5 months ago
..
examples Updated the CLI interface. 1 year ago
__init__.py Initial Import 4 years ago
conftest.py Initial Import 4 years ago
readme.markdown Initial Import 4 years ago
requirements.pip Initial Import 4 years ago
test_lib_commands.py Updated the CLI interface. 1 year ago
test_lib_commands_base.py Updated the CLI interface. 1 year ago
test_lib_commands_centos.py Finished unit tests for new release. 1 year ago
test_lib_commands_django.py Updated the CLI interface. 1 year ago
test_lib_commands_messages.py Added mattermost command. 1 year ago
test_lib_commands_mysql.py Finished unit tests for new release. 1 year ago
test_lib_commands_pgsql.py Added pgsql.sql command for scripting raw SQL. 5 months ago
test_lib_commands_php.py Finished unit tests for new release. 1 year ago
test_lib_commands_posix.py Updated help. 1 year ago
test_lib_commands_python.py Finished unit tests for new release. 1 year ago
test_lib_commands_ubuntu.py Finished unit tests for new release. 1 year ago
test_lib_contexts.py Finished unit tests for new release. 1 year ago
test_lib_factories.py Added pgsql.sql command for scripting raw SQL. 5 months ago
test_lib_loaders_base.py Finished unit tests for new release. 1 year ago
test_lib_loaders_ini.py Finished unit tests for new release. 1 year ago
test_lib_loaders_yaml.py Finished unit tests for new release. 1 year ago

readme.markdown

Testing

Set Up for Testing

Install requirements:

pip install tests/requirements.pip

Running Tests

Run all tests with coverage:

make tests

Run a specific test:

python -m pytest tests/units/path/to/test.py

Example:

python -m pytest tests/units/shortcuts/test_shortcuts.py

To allow output from print statements within a test method, add the -s switch:

python -m pytest -s tests/units/path/to/test.py

Tip: Add -v to list the tests with PASS/FAIL.

Reference