Skip to content

Commit ac4bcb2

Browse files
adamtheturtleclaude
andcommitted
Fix VuMark duplicate keys test isolation in Flask tests
Use distinct keys ("v1", "v2", "v3") for VuMark database tests to avoid conflicts with the TARGET_MANAGER singleton state from cloud database tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 92650f8 commit ac4bcb2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/mock_vws/test_flask_app_usage.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,26 +176,26 @@ def test_duplicate_vumark_keys() -> None:
176176
keys, including VuMark databases.
177177
"""
178178
database = VuMarkDatabase(
179-
server_access_key="1",
180-
server_secret_key="2",
181-
database_name="3",
179+
server_access_key="v1",
180+
server_secret_key="v2",
181+
database_name="v3",
182182
)
183183

184-
bad_server_access_key_db = VuMarkDatabase(server_access_key="1")
185-
bad_server_secret_key_db = VuMarkDatabase(server_secret_key="2")
186-
bad_database_name_db = VuMarkDatabase(database_name="3")
184+
bad_server_access_key_db = VuMarkDatabase(server_access_key="v1")
185+
bad_server_secret_key_db = VuMarkDatabase(server_secret_key="v2")
186+
bad_database_name_db = VuMarkDatabase(database_name="v3")
187187

188188
server_access_key_conflict_error = (
189189
"All server access keys must be unique. "
190-
'There is already a database with the server access key "1".'
190+
'There is already a database with the server access key "v1".'
191191
)
192192
server_secret_key_conflict_error = (
193193
"All server secret keys must be unique. "
194-
'There is already a database with the server secret key "2".'
194+
'There is already a database with the server secret key "v2".'
195195
)
196196
database_name_conflict_error = (
197197
"All names must be unique. "
198-
'There is already a database with the name "3".'
198+
'There is already a database with the name "v3".'
199199
)
200200

201201
databases_url = _EXAMPLE_URL_FOR_TARGET_MANAGER + "/vumark_databases"

0 commit comments

Comments
 (0)