forked from Rockachopa/Timmy-time-dashboard
This commit is contained in:
@@ -12,15 +12,19 @@ class TestAppleSiliconHelpers:
|
|||||||
def test_is_apple_silicon_true_on_arm64_darwin(self):
|
def test_is_apple_silicon_true_on_arm64_darwin(self):
|
||||||
from timmy.autoresearch import is_apple_silicon
|
from timmy.autoresearch import is_apple_silicon
|
||||||
|
|
||||||
with patch("timmy.autoresearch.platform.system", return_value="Darwin"), \
|
with (
|
||||||
patch("timmy.autoresearch.platform.machine", return_value="arm64"):
|
patch("timmy.autoresearch.platform.system", return_value="Darwin"),
|
||||||
|
patch("timmy.autoresearch.platform.machine", return_value="arm64"),
|
||||||
|
):
|
||||||
assert is_apple_silicon() is True
|
assert is_apple_silicon() is True
|
||||||
|
|
||||||
def test_is_apple_silicon_false_on_linux(self):
|
def test_is_apple_silicon_false_on_linux(self):
|
||||||
from timmy.autoresearch import is_apple_silicon
|
from timmy.autoresearch import is_apple_silicon
|
||||||
|
|
||||||
with patch("timmy.autoresearch.platform.system", return_value="Linux"), \
|
with (
|
||||||
patch("timmy.autoresearch.platform.machine", return_value="x86_64"):
|
patch("timmy.autoresearch.platform.system", return_value="Linux"),
|
||||||
|
patch("timmy.autoresearch.platform.machine", return_value="x86_64"),
|
||||||
|
):
|
||||||
assert is_apple_silicon() is False
|
assert is_apple_silicon() is False
|
||||||
|
|
||||||
def test_build_env_auto_resolves_mlx_on_apple_silicon(self):
|
def test_build_env_auto_resolves_mlx_on_apple_silicon(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user