From eb51d9fae10aced26f92948bdb2a85560b36d7d3 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Wed, 3 Jan 2024 17:15:58 +0100 Subject: [PATCH] Better check for file name existing --- tests/test_ngi_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ngi_data.py b/tests/test_ngi_data.py index f20ceaf..d4b44ac 100644 --- a/tests/test_ngi_data.py +++ b/tests/test_ngi_data.py @@ -85,7 +85,7 @@ def test_modified_or_new_staged(data_repo_new_staged): modified_or_new = data_master.get_modified_or_new_projects() file_names = [project.relative_path for project in modified_or_new] assert len(set(file_names)) == 5 - assert "staged_file" in file_names[3] + assert any("staged_file" in s for s in file_names) def test_modified_or_new_modified_not_staged(data_repo_modified_not_staged):