Skip to content

Commit 9b7069d

Browse files
committed
fix(test): test data outside folders will not be loaded by MSSDK
Fix the test assumptions by reducing the number of test data to match. In the case of the Standard Forms (v1) package `package_F03_test`, there are 105 test data files, of which 82 are unique. However, only 81 of them are to be found within folders under `test_data`, whereas the rest, including a unique one `example.xml`, is not contained within a folder.
1 parent 7ebd022 commit 9b7069d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/e2e/data_sampler/test_unique_xpaths_from_xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_unique_xpaths_from_xml(notice_repository_with_indexed_notices):
5252
def test_unique_notice_id(notice_repository_with_indexed_notices):
5353
mongodb_client = notice_repository_with_indexed_notices.mongodb_client
5454
unique_notice_id = get_unique_notice_id_from_notice_repository(mongodb_client=mongodb_client)
55-
assert len(unique_notice_id) == 82
55+
assert len(unique_notice_id) == 81
5656

5757

5858
def test_minimal_set_of_notices_for_coverage_xpaths(notice_repository_with_indexed_notices):
@@ -75,7 +75,7 @@ def test_unique_notices_id_covered_by_xpaths(notice_repository_with_indexed_noti
7575
mongodb_client = notice_repository_with_indexed_notices.mongodb_client
7676
unique_xpaths = get_unique_xpaths_from_notice_repository(mongodb_client=mongodb_client)
7777
unique_notices = get_unique_notices_id_covered_by_xpaths(xpaths=unique_xpaths, mongodb_client=mongodb_client)
78-
assert len(unique_notices) == 82
78+
assert len(unique_notices) == 81
7979

8080

8181
def test_unique_xpaths_covered_by_notices(notice_repository_with_indexed_notices):

0 commit comments

Comments
 (0)