Skip to content

Commit

Permalink
Create test for initialize function
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJKoopman committed Dec 18, 2023
1 parent 77b6c50 commit a4684c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_sorunlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from unittest.mock import MagicMock, patch

from util import mocked_clients

import sorunlib
from sorunlib import initialize


@patch('sorunlib.commands.time.sleep', MagicMock())
@patch('sorunlib.create_clients', mocked_clients)
def test_initialize():
initialize()
assert sorunlib.CLIENTS is not None

0 comments on commit a4684c6

Please sign in to comment.