Skip to content

Commit

Permalink
Set SIMULATE_CAN_CONNECT so tests pass on existing versions of ops
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt authored and jnsgruk committed Jan 5, 2023
1 parent d2c05cb commit a74568e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
import unittest
from unittest.mock import Mock, patch

import ops.testing
from charm import HelloKubeconCharm
from ops.model import ActiveStatus
from ops.testing import Harness


ops.testing.SIMULATE_CAN_CONNECT = True


class TestCharm(unittest.TestCase):
def setUp(self):
self.harness = Harness(HelloKubeconCharm)
Expand Down

0 comments on commit a74568e

Please sign in to comment.