Skip to content

Commit

Permalink
sbc: add test cases
Browse files Browse the repository at this point in the history
Closes: #272
  • Loading branch information
shawaj authored Jun 27, 2023
1 parent ee6e97e commit c75469a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hm_pyhelper/tests/test_sbc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from hm_pyhelper.sbc import is_commercial_fleet, is_nebra_fleet


class TestSBC(unittest.TestCase):

@patch.dict('os.environ', {"BALENA_API_URL": "https://api.cloud.nebra.com"})
@patch.dict('os.environ', {"BALENA_APP_ID": 55})
def test_is_nebra_fleet_true(self):
self.assertTrue(is_nebra_fleet())

0 comments on commit c75469a

Please sign in to comment.