This commit is contained in:
Ayaz Salikhov
2022-01-22 20:16:42 +03:00
parent 897b6e0544
commit 3f6d683f76
3 changed files with 14 additions and 6 deletions

View File

@@ -37,10 +37,9 @@ def test_nbconvert(container: TrackedContainer, test_file: str) -> None:
tty=True,
command=["start.sh", "bash", "-c", command],
)
# Spark warning
warnings = TrackedContainer.get_warnings(logs)
assert len(warnings) == 1
assert "An illegal reflective access operation has occurred" in warnings[0]
# Some Spark warnings
assert len(warnings) == 5
expected_file = f"{output_dir}/{test_file}.md"
assert expected_file in logs, f"Expected file {expected_file} not generated"