Skip to content

Commit

Permalink
Fix unittest for merging.
Browse files Browse the repository at this point in the history
  • Loading branch information
drodarie committed Jun 16, 2024
1 parent 6a0af0d commit 81cad3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ def test_import_overwrite(self):
)
self.assertEqual(10, tree["imp"]["importable"])

def test_outdoc_import_merge(self):
@patch("bsb.config.parsers.get_configuration_parser_classes")
def test_outdoc_import_merge(self, get_content_mock):
# Override get_configuration_parser to manually register RefParserMock
get_content_mock.return_value = {"txt": RefParserMock, "bla": RefParserMock2}

file = "outdoc_import_merge.txt"
tree, meta = self.parser.parse(
get_content(file), path=pathlib.Path(__file__).parent / "data/configs" / file
Expand Down

0 comments on commit 81cad3e

Please sign in to comment.