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 277ec1cf6b Added support for Context and Variable(s). 4 years ago
..
examples Added support for Context and Variable(s). 4 years 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_factory.py Updated factory so that `get_command()` raises an error if the factory has not yet been loaded. 4 years ago
test_library_commands_base.py Added support for Context and Variable(s). 4 years ago
test_library_commands_templates.py Added support for template command. 4 years ago
test_library_overlays_centos.py Added overlay for Cent OS. 4 years ago
test_library_overlays_common.py Added udf command for StackScript inputs. 4 years ago
test_library_overlays_django.py Finished initial development and testing. 4 years ago
test_library_overlays_mysql.py Added mysql overlay. 4 years ago
test_library_overlays_pgsql.py Updated pgsql overlay for consistency. 4 years ago
test_library_overlays_posix.py Added wait command. 4 years ago
test_library_overlays_ubuntu.py Added support for capturing the command name. 4 years ago
test_library_scripts.py Finished initial development and testing. 4 years ago
test_parsers_base.py Added support for capturing the command name. 4 years ago
test_parsers_ini.py Added support for template command. 4 years ago
test_parsers_utils.py Improved handling of sudo. 4 years 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