django_test_tools package¶
Subpackages¶
Submodules¶
django_test_tools.app_manager module¶
django_test_tools.apps module¶
django_test_tools.assert_utils module¶
django_test_tools.excel module¶
-
class
django_test_tools.excel.
ExcelAdapter
[source]¶ Bases:
object
-
classmethod
convert_to_dict
(filename, sheet_name=None)[source]¶ Reads an Excel file and converts every row into a dictionary. All values are converted to strings. Assumes first row contains the name of the attributes. :param filename: <str> Excel filename :param sheet_name: <str> Name of the sheet :return: <list> A list of dictionaries.
-
classmethod
convert_to_list
(filename, sheet_name=None, has_header=True)[source]¶ Reads an Excel file and converts every row into a list of values. :param filename: <str> Excel filename :param sheet_name: <str> Name of the sheet :param has_header: <bool> If true the first row is not included in the list. :return: <list> A list of lists.
-
classmethod