Skip to content

Commit

Permalink
Update unit test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Feb 21, 2023
1 parent 8faf3ae commit ca3cb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_action_params_parsing_ok(self):
mock_event.params = {"host": "my-host"}
with self.assertLogs(level="INFO") as logger:
self.assertTrue(self.harness.charm._set_server_action(mock_event))
self.assertEqual(sorted(logger.output), ["INFO:test_data_models:my-host:80"])
self.assertEqual(sorted(logger.output), ["INFO:unit.test_data_models:my-host:80"])

def test_action_params_parsing_ko(self):
mock_event = Mock()
Expand All @@ -184,7 +184,7 @@ def test_relation_databag_io(self):

with self.assertLogs(level="INFO") as logger:
self.harness.update_relation_data(relation_id, "mongodb", {"key": "1.0"})
self.assertEqual(logger.output, ["INFO:test_data_models:<class 'float'>"])
self.assertEqual(logger.output, ["INFO:unit.test_data_models:<class 'float'>"])

def test_relation_databag_merged(self):
relation = self.harness.charm.model.get_relation("database")
Expand Down

0 comments on commit ca3cb21

Please sign in to comment.