Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Add simple test for get_platform
Browse files Browse the repository at this point in the history
  • Loading branch information
forslund committed Mar 29, 2020
1 parent a792a02 commit 165fbbe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/unittests/util/test_platform.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from unittest import TestCase, mock

from mycroft.util import get_arch


class TestPlatform(TestCase):
@mock.patch('os.uname')
def test_get_arch(self, mock_uname):
mock_uname.return_value = ('Linux', 'Woodstock', '4.15.0-39-generic',
'Awesome test system Mark 7', 'x86_64')
self.assertEqual(get_arch(), 'x86_64')

0 comments on commit 165fbbe

Please sign in to comment.