Source code for cfme.utils.pytest_shortcuts

# -*- coding: utf-8 -*-


[docs]def extract_fixtures_values(item): """Extracts names and values of all the fixtures that the test has. Args: item: py.test test item Returns: :py:class:`dict` with fixtures and their values. """ if hasattr(item, "callspec"): return item.callspec.params else: # Some of the test items do not have this, so fall back # This can cause some problems if the fixtures are used in the guards in this case, but # that will tell use where is the problem and we can then find it out properly. return {}