Skip to content

Commit efd153d

Browse files
Fix typo in unit tests (#168)
1 parent 7834e51 commit efd153d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/scenario_/database_relations/test_database_relations_breaking.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_breaking_requires_and_complete_provides(
6868
event=complete_requires.broken_event,
6969
)
7070
assert state.app_status == ops.BlockedStatus("Missing relation: backend-database")
71-
for index, provides in enumerate(complete_provides_s, 1):
71+
for index, provides in enumerate(complete_provides_s_, 1):
7272
local_app_data = state.relations[index].local_app_data
7373
# TODO secrets cleanup: remove
7474
# (waiting on https://github.com/canonical/data-platform-libs/issues/118)
@@ -118,7 +118,7 @@ def test_complete_requires_and_breaking_provides(
118118
event=complete_provides_s_[-1].broken_event,
119119
secrets=secrets,
120120
)
121-
if len(complete_provides_s) == 1:
121+
if len(complete_provides_s_) == 1:
122122
assert state.app_status == ops.BlockedStatus("Missing relation: database")
123123
else:
124124
assert state.app_status == ops.ActiveStatus()
@@ -129,8 +129,8 @@ def test_complete_requires_and_breaking_provides(
129129
assert local_app_data == {}
130130
# TODO secrets cleanup: test if secret deleted
131131
# (waiting on https://github.com/canonical/data-platform-libs/issues/118)
132-
complete_provides_s.pop()
133-
for index, provides in enumerate(complete_provides_s, 1):
132+
complete_provides_s_.pop()
133+
for index, provides in enumerate(complete_provides_s_, 1):
134134
relation = state.relations[index]
135135
if juju_has_secrets and "requested-secrets" in relation.remote_app_data:
136136
local_app_data = relation.local_app_data

0 commit comments

Comments
 (0)