jcftang-r7 / busser-testinfra

1 stars 0 forks source link

testinfra command deprecated #2

Open darkn3rd opened 6 years ago

darkn3rd commented 6 years ago

When running tests with kitchen verify, getting this deprecation warning:

/usr/local/lib/python2.7/dist-packages/testinfra/main.py:20: UserWarning: calling testinfra is deprecated, call py.test instead
  warnings.warn('calling testinfra is deprecated, call py.test instead')

This is because tests are executed using something like this:

testinfra --verbose /tmp/verifier/suites/testinfra/test_default.py

Looking at the current documentation, it looks like tests should be run as:

py.test -v /tmp/verifier/suites/testinfra/test_default.py