I am currently exploring testing methodologies for Databricks notebooks and would like to inquire whether it's possible to write pytest tests for notebooks that contain code not encapsulated within functions or classes.
***********************
a = 4
b = 5
print(a + b)
***********************
Given this scenario, I am interested in understanding whether it's feasible to write pytest tests to validate the functionality of such code blocks within Databricks notebooks.
Any insights or guidance you could provide on this matter would be greatly appreciated.
NOTE: we should not touch the notebook code.
if we can able to just write a test case for the above code.