From ffd99f390f3cdbe28585c279db4fcd4472683152 Mon Sep 17 00:00:00 2001 From: Eric Hanko Date: Fri, 24 Feb 2017 20:14:54 -0800 Subject: [PATCH] hotfix for renamed functions --- inqry/systemspecs.py | 4 ++-- tests/test_systemspecs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inqry/systemspecs.py b/inqry/systemspecs.py index 4830e08..7639478 100644 --- a/inqry/systemspecs.py +++ b/inqry/systemspecs.py @@ -12,7 +12,7 @@ from inqry import macdisk # import linux_sysinfo as sysinfo # etc -def _create_specs_from_system_profiler_hardware_output(output): +def create_specs_from_system_profiler_hardware_output(output): return SystemSpecs(output) @@ -21,7 +21,7 @@ def mac_os(): This function is used as the primary means of obtaining basic Mac hardware components. """ - return _create_specs_from_system_profiler_hardware_output( + return create_specs_from_system_profiler_hardware_output( system_profiler.hardware()) diff --git a/tests/test_systemspecs.py b/tests/test_systemspecs.py index 8208edb..534b0fc 100644 --- a/tests/test_systemspecs.py +++ b/tests/test_systemspecs.py @@ -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(): - assert isinstance(systemspecs.get_mac_hardware(), systemspecs.SystemSpecs) + assert isinstance(systemspecs.mac_os(), systemspecs.SystemSpecs) # def test_if_disk_list_is_list(test_disk):