Skip to content

Commit

Permalink
Use copy for better clarity of intention
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed Nov 25, 2022
1 parent 0d74e94 commit 7290099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_lib_per_unit_requires.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
import unittest
from copy import copy
from textwrap import dedent

import pytest
Expand Down Expand Up @@ -220,7 +221,7 @@ class RequirerCharm(CharmBase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.ipu = IngressPerUnitRequirer(self, relation_name="ingress", port=80)
self.dependee = {"value": self.ipu.url} # Stand-in for interlib dependency
self.dependee = {"value": copy(self.ipu.url)} # Stand-in for interlib dependency

def setUp(self):
self.harness = Harness(self.RequirerCharm, meta=self.RequirerCharm.META)
Expand Down

0 comments on commit 7290099

Please sign in to comment.