Skip to content

Commit

Permalink
fixed unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Nov 23, 2023
1 parent d7f143c commit 37869de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import unittest

from charm import MimirCoordinatorK8SOperatorCharm
from ops.model import ActiveStatus
from ops.model import ActiveStatus, BlockedStatus
from ops.testing import Harness


Expand All @@ -17,4 +17,5 @@ def setUp(self):
self.harness.begin_with_initial_hooks()

def test_simple(self):
self.assertIsInstance(self.harness.charm.unit.status, ActiveStatus)
self.harness.evaluate_status()
self.assertIsInstance(self.harness.charm.unit.status, BlockedStatus)

0 comments on commit 37869de

Please sign in to comment.