<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pytest on Notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pytest-on-notebook/m-p/67910#M33476</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;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.&lt;BR /&gt;***********************&lt;BR /&gt;a = 4&lt;BR /&gt;b = 5&lt;BR /&gt;&lt;STRONG&gt;print(a + b)&lt;BR /&gt;***********************&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;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.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Any insights or guidance you could provide on this matter would be greatly appreciated.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;NOTE: we should not touch the&amp;nbsp;notebook code.&lt;BR /&gt;if we can able to just write a test case for the above code.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 06:32:14 GMT</pubDate>
    <dc:creator>vinayaka_pallak</dc:creator>
    <dc:date>2024-05-02T06:32:14Z</dc:date>
    <item>
      <title>Pytest on Notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/pytest-on-notebook/m-p/67910#M33476</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;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.&lt;BR /&gt;***********************&lt;BR /&gt;a = 4&lt;BR /&gt;b = 5&lt;BR /&gt;&lt;STRONG&gt;print(a + b)&lt;BR /&gt;***********************&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;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.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;Any insights or guidance you could provide on this matter would be greatly appreciated.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="times new roman,times"&gt;&lt;STRONG&gt;NOTE: we should not touch the&amp;nbsp;notebook code.&lt;BR /&gt;if we can able to just write a test case for the above code.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 06:32:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pytest-on-notebook/m-p/67910#M33476</guid>
      <dc:creator>vinayaka_pallak</dc:creator>
      <dc:date>2024-05-02T06:32:14Z</dc:date>
    </item>
  </channel>
</rss>

