зеркало из https://github.com/microsoft/InQRy.git
hotfix for renamed functions
This commit is contained in:
Родитель
ef066a7bf0
Коммит
ffd99f390f
|
@ -12,7 +12,7 @@ from inqry import macdisk
|
||||||
# import linux_sysinfo as sysinfo
|
# import linux_sysinfo as sysinfo
|
||||||
# etc
|
# etc
|
||||||
|
|
||||||
def _create_specs_from_system_profiler_hardware_output(output):
|
def create_specs_from_system_profiler_hardware_output(output):
|
||||||
return SystemSpecs(output)
|
return SystemSpecs(output)
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ def mac_os():
|
||||||
This function is used as the primary means of obtaining basic Mac
|
This function is used as the primary means of obtaining basic Mac
|
||||||
hardware components.
|
hardware components.
|
||||||
"""
|
"""
|
||||||
return _create_specs_from_system_profiler_hardware_output(
|
return create_specs_from_system_profiler_hardware_output(
|
||||||
system_profiler.hardware())
|
system_profiler.hardware())
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ def test_ability_to_get_components_from_system_profile_object():
|
||||||
|
|
||||||
|
|
||||||
def test_mac_hardware_method_output_data_type_is_system_specs_class():
|
def test_mac_hardware_method_output_data_type_is_system_specs_class():
|
||||||
assert isinstance(systemspecs.get_mac_hardware(), systemspecs.SystemSpecs)
|
assert isinstance(systemspecs.mac_os(), systemspecs.SystemSpecs)
|
||||||
|
|
||||||
|
|
||||||
# def test_if_disk_list_is_list(test_disk):
|
# def test_if_disk_list_is_list(test_disk):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче