Pedro Algarvio
60f215f191
Add from __future__ import absolute_import
2015-01-30 22:25:04 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Pedro Algarvio
c92568da9e
Updated integration.states.host
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
be54a503d9
Adapted code fix sys.path
in case called from __main__
. Adapted to salt-testing.
2013-06-28 00:12:56 +01:00
Pedro Algarvio
156ce07bde
Migrated test.integration.states.host
to use SaltReturnAssertsMixIn
.
2012-12-07 16:35:20 +00:00
Pedro Algarvio
c5fe83272f
Even more open()
to salt.utils.fopen()
.
2012-11-18 18:57:10 +00:00
Roman Imankulov
bb0ed1a3a7
Tests cleanup
...
Defined "integration.run_tests()" function which can be used to execute
a particular integration test case. Existing bolerplate code in modules
and states tests is replaced with following lines:
if __name__ == '__main__':
from integration import run_tests
run_tests(TestCaseName)
Typical usecase could look like this:
python integration/modules/pip.py --no-clean -vv
2012-07-20 12:25:08 +06:00
Dan Colish
c5cdb366dc
Fix test.integration.states.host. Make master_config and minion_config a property to keep semantics consistent
2012-06-30 13:54:23 -07:00
Dan Colish
78d16a28f0
Move tmp hosts file management to test case which requires it. Fix
...
test.unit.utils.find_test on OSX
2012-06-30 12:20:53 -07:00
Dan Colish
f79b6e5ea0
Fix host file setup and fix tests.integration.states.host
2012-06-30 11:47:48 -07:00
Baiju Muthukadan
24bb4ea4e0
Fix PEP8 warnings for test cases
2012-05-29 22:10:20 +05:30
Thomas S Hatch
5f9a7e87e4
Initial host state test
2012-05-14 23:56:45 -06:00