fix test: test_data_components.test_directory_without_mocks (#2223)

This commit is contained in:
Nicolò Boschi 2024-06-19 14:41:51 +02:00 committed by GitHub
commit 6e49a2ec3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,7 +171,7 @@ def test_directory_without_mocks():
# in ../docs/docs/components there are many mdx files
# check if the directory component can load them
# just check if the number of results is the same as the number of files
docs_path = Path(__file__).parent.parent / "docs" / "docs" / "components"
docs_path = Path(__file__).parent.parent.parent / "docs" / "docs" / "components"
results = directory_component.build(str(docs_path), use_multithreading=False)
docs_files = list(docs_path.glob("*.mdx"))
assert len(results) == len(docs_files)