<?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 Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce output (can't discover the test files) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6177#M2394</link>
    <description>&lt;P&gt;Can you send me the code snippets please!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 09:28:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-18T09:28:00Z</dc:date>
    <item>
      <title>Running unit tests from a different notebook (using Python unittest package) doesn't produce output (can't discover the test files)</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6174#M2391</link>
      <description>&lt;P&gt;I have a test file (test_transforms.py) which has a series of tests running using Python's unittest package. I can successfully run the tests inside of the file with expected output. But when I try to run this test file from a different notebook (run_unit_tests), it doesn't produce any test results ('Ran 0 tests in 0.000s').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to keep both files in the same dir but still doesn't work. Here's how the tests are being run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# print(os.getcwd())&lt;/P&gt;&lt;P&gt;# print(os.listdir())&lt;/P&gt;&lt;P&gt;run_test = unittest.main(argv=[' '], verbosity=2, exit=False)&lt;/P&gt;&lt;P&gt;assert run_test.result.wasSuccessful(), 'Test failed; see logs above'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run from a different notebook (run_unit_tests)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/398iBC6D95E398BFE8CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When run from the test file (test_transforms.py)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/395iBAB1208FD2F5083E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;NB: I have my notebooks and .py files in a repo. How can I succesfully run testfiles from a different notebook as my intent is to have these tests triggered with Github actions? (I have the workflow set up successfully)&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 23:13:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6174#M2391</guid>
      <dc:creator>FG</dc:creator>
      <dc:date>2023-04-09T23:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce output (can't discover the test files)</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6175#M2392</link>
      <description>&lt;P&gt;@Fuad Goloba​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running tests on Databricks, you need to ensure that the test file is uploaded to the Databricks workspace and that the correct path is specified when importing the test module in the notebook that is running the tests. Here's an example of how you could modify your run_unit_tests notebook to run the tests from test_transforms.py on Databricks:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;# Import the required modules
import unittest
import os
&amp;nbsp;
# Set the path to the directory containing the test file
test_dir = '/path/to/test/files/'
&amp;nbsp;
# Add the test directory to the Python path
os.sys.path.append(test_dir)
&amp;nbsp;
# Import the test module
import test_transforms
&amp;nbsp;
# Run the tests
run_test = unittest.main(argv=[' '], verbosity=2, exit=False)
&amp;nbsp;
# Check if the tests were successful
assert run_test.result.wasSuccessful(), 'Test failed; see logs above'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Make sure to replace /path/to/test/files/ with the actual path to the directory containing your test file. You can check the path using the dbutils.fs.ls() function. Once you have verified that the tests are running correctly on Databricks, you can set up a GitHub action to trigger the tests as part of your continuous integration process. In the action, you can use the Databricks CLI to upload the test file to the workspace and run the tests on Databricks.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:33:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6175#M2392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-11T09:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce output (can't discover the test files)</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6176#M2393</link>
      <description>&lt;P&gt;Thanks for your reply. I have tried the solution proposed now and still doesn't provide any results. Alternatively, I tried to run the tests using unittest's methods by discovering all the test files in the directory and running them (this worked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a screenshot of both solutions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/394iF53840E5D63C983E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 11:25:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6176#M2393</guid>
      <dc:creator>FG</dc:creator>
      <dc:date>2023-04-11T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce output (can't discover the test files)</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6177#M2394</link>
      <description>&lt;P&gt;Can you send me the code snippets please!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 09:28:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/6177#M2394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-18T09:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce out</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/75372#M34953</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; unittest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; os&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Set the path to the directory containing the test file&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test_dir &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'/dbfs/mnt/repository/yunjchen/customer_ai_project/packages/visualization/test/model_performance'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Add the test directory to the Python path&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;os.sys.path.&lt;/SPAN&gt;&lt;SPAN&gt;append&lt;/SPAN&gt;&lt;SPAN&gt;(test_dir)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Import the test module&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; test_ranking&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;all_tests &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; unittest.&lt;/SPAN&gt;&lt;SPAN&gt;TestLoader&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;loadTestsFromModule&lt;/SPAN&gt;&lt;SPAN&gt;(test_ranking)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# run all tests with verbosity &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test_runner &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; unittest.&lt;/SPAN&gt;&lt;SPAN&gt;TextTestRunner&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;verbosity&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;assert&lt;/SPAN&gt;&lt;SPAN&gt; test_runner.&lt;/SPAN&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;(all_tests).&lt;/SPAN&gt;&lt;SPAN&gt;wasSuccessful&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;'Test failed; see logs above'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jun 2024 21:29:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/75372#M34953</guid>
      <dc:creator>sparklearner233</dc:creator>
      <dc:date>2024-06-21T21:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running unit tests from a different notebook (using Python unittest package) doesn't produce out</title>
      <link>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/90592#M37960</link>
      <description>&lt;P&gt;Hello, I have exactly the same issue.&lt;/P&gt;&lt;P&gt;In my case, using the ipytest library from Databricks clusters, this is the error that occurs when I try to run the tests:&lt;/P&gt;&lt;P&gt;EEEEE [100%]&lt;BR /&gt;============================================== ERRORS ==============================================&lt;BR /&gt;____________________________ ERROR at setup of test_simple_train_model _____________________________&lt;BR /&gt;file /root/.ipykernel/24539/command-4149222638982994-1805159126, line 3&lt;BR /&gt;def test_simple_train_model(model: BaseEstimator, data: tuple):&lt;BR /&gt;E fixture 'model' not found&lt;BR /&gt;&amp;gt; available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory&lt;BR /&gt;&amp;gt; use 'pytest --fixtures [testpath]' for help on them.&lt;/P&gt;&lt;P&gt;/root/.ipykernel/24539/command-4149222638982994-1805159126:3&lt;BR /&gt;_______________________ ERROR at setup of test_plot_masive_confusion_matrix ________________________&lt;BR /&gt;file /root/.ipykernel/24539/command-4149222638982995-2606421544, line 3&lt;BR /&gt;def test_plot_masive_confusion_matrix(model: BaseEstimator, data: tuple):&lt;BR /&gt;E fixture 'model' not found&lt;BR /&gt;&amp;gt; available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory&lt;BR /&gt;&amp;gt; use 'pytest --fixtures [testpath]' for help on them.&lt;/P&gt;&lt;P&gt;/root/.ipykernel/24539/command-4149222638982995-2606421544:3&lt;BR /&gt;______________________________ ERROR at setup of test_plot_roc_curve _______________________________&lt;BR /&gt;file /root/.ipykernel/24539/command-4149222638982996-3955143249, line 3&lt;BR /&gt;def test_plot_roc_curve(model: BaseEstimator, data: tuple):&lt;BR /&gt;E fixture 'model' not found&lt;BR /&gt;&amp;gt; available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory&lt;BR /&gt;&amp;gt; use 'pytest --fixtures [testpath]' for help on them.&lt;/P&gt;&lt;P&gt;/root/.ipykernel/24539/command-4149222638982996-3955143249:3&lt;BR /&gt;___________________________ ERROR at setup of test_changeAdaptativeDtype ___________________________&lt;BR /&gt;file /root/.ipykernel/24539/command-4149222638982997-2293422769, line 3&lt;BR /&gt;def test_changeAdaptativeDtype(df_fixture: pd.DataFrame) -&amp;gt; pd.DataFrame:&lt;BR /&gt;E fixture 'df_fixture' not found&lt;BR /&gt;&amp;gt; available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory&lt;BR /&gt;&amp;gt; use 'pytest --fixtures [testpath]' for help on them.&lt;/P&gt;&lt;P&gt;/root/.ipykernel/24539/command-4149222638982997-2293422769:3&lt;BR /&gt;__________________________ ERROR at setup of test_noisyVariableSuppressor __________________________&lt;BR /&gt;file /root/.ipykernel/24539/command-4149222638982998-15294889, line 3&lt;BR /&gt;def test_noisyVariableSuppressor(df_fixture: pd.DataFrame) -&amp;gt; pd.DataFrame:&lt;BR /&gt;E fixture 'df_fixture' not found&lt;BR /&gt;&amp;gt; available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory&lt;BR /&gt;&amp;gt; use 'pytest --fixtures [testpath]' for help on them.&lt;/P&gt;&lt;P&gt;/root/.ipykernel/24539/command-4149222638982998-15294889:3&lt;BR /&gt;========================================= warnings summary =========================================&lt;BR /&gt;../../local_disk0/.ephemeral_nfs/envs/pythonEnv-177398d8-2e8f-43fd-9db3-1d841e854457/lib/python3.10/site-packages/_pytest/config/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://__init__.py:1277" href="http://disq.us/url?url=http%3A%2F%2F__init__.py%3A1277%3An93JE4sIXmRrn6mrtO_FdmNyc0E&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://__init__.py:1277&lt;/A&gt;&lt;BR /&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-177398d8-2e8f-43fd-9db3-1d841e854457/lib/python3.10/site-packages/_pytest/config/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://__init__.py:1277" href="http://disq.us/url?url=http%3A%2F%2F__init__.py%3A1277%3An93JE4sIXmRrn6mrtO_FdmNyc0E&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://__init__.py:1277&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: anyio&lt;BR /&gt;self._mark_plugins_for_rewrite(hook)&lt;/P&gt;&lt;P&gt;-- Docs:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="https://docs.pytest.org/en/stable/how-to/capture-warnings.html" href="https://disq.us/url?url=https%3A%2F%2Fdocs.pytest.org%2Fen%2Fstable%2Fhow-to%2Fcapture-warnings.html%3AlBN0QJeuidrru7AT5qe7cbAIPts&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;https://docs.pytest.org/en/stable/how-to/capture-warnings.html&lt;/A&gt;&lt;BR /&gt;===================================== short test summary info ======================================&lt;BR /&gt;ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://t_7524c4aa66964b16be82dde4f1f448d9.py" href="http://disq.us/url?url=http%3A%2F%2Ft_7524c4aa66964b16be82dde4f1f448d9.py%3ACqdq21Sf9wuLNpL9jFna6RI7cYw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://t_7524c4aa66964b16be82dde4f1f448d9.py&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::test_simple_train_model&lt;BR /&gt;ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://t_7524c4aa66964b16be82dde4f1f448d9.py" href="http://disq.us/url?url=http%3A%2F%2Ft_7524c4aa66964b16be82dde4f1f448d9.py%3ACqdq21Sf9wuLNpL9jFna6RI7cYw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://t_7524c4aa66964b16be82dde4f1f448d9.py&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::test_plot_masive_confusion_matrix&lt;BR /&gt;ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://t_7524c4aa66964b16be82dde4f1f448d9.py" href="http://disq.us/url?url=http%3A%2F%2Ft_7524c4aa66964b16be82dde4f1f448d9.py%3ACqdq21Sf9wuLNpL9jFna6RI7cYw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://t_7524c4aa66964b16be82dde4f1f448d9.py&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::test_plot_roc_curve&lt;BR /&gt;ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://t_7524c4aa66964b16be82dde4f1f448d9.py" href="http://disq.us/url?url=http%3A%2F%2Ft_7524c4aa66964b16be82dde4f1f448d9.py%3ACqdq21Sf9wuLNpL9jFna6RI7cYw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://t_7524c4aa66964b16be82dde4f1f448d9.py&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::test_changeAdaptativeDtype&lt;BR /&gt;ERROR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://t_7524c4aa66964b16be82dde4f1f448d9.py" href="http://disq.us/url?url=http%3A%2F%2Ft_7524c4aa66964b16be82dde4f1f448d9.py%3ACqdq21Sf9wuLNpL9jFna6RI7cYw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://t_7524c4aa66964b16be82dde4f1f448d9.py&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::test_noisyVariableSuppressor&lt;/P&gt;&lt;P&gt;And when I check the pytest fixtures log, I see that the directory is set to default by Databricks:&lt;/P&gt;&lt;P&gt;============================= test session starts ==============================&lt;BR /&gt;platform linux -- Python 3.10.12, pytest-8.3.3, pluggy-1.5.0&lt;BR /&gt;rootdir: /databricks/driver&lt;BR /&gt;plugins: anyio-3.5.0, typeguard-2.13.3&lt;BR /&gt;collected 0 items&lt;BR /&gt;cache -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://cacheprovider.py:556" href="http://disq.us/url?url=http%3A%2F%2Fcacheprovider.py%3A556%3A_jRkdfDCN048v6MwgInV7GsNBaQ&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://cacheprovider.py:556&lt;/A&gt;&lt;BR /&gt;Return a cache object that can persist state between testing sessions.&lt;/P&gt;&lt;P&gt;capsysbinary -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://capture.py:1006" href="http://disq.us/url?url=http%3A%2F%2Fcapture.py%3A1006%3A2uHdlClbmQmgUhKf3XyOssygQiQ&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://capture.py:1006&lt;/A&gt;&lt;BR /&gt;Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.&lt;/P&gt;&lt;P&gt;capfd -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://capture.py:1034" href="http://disq.us/url?url=http%3A%2F%2Fcapture.py%3A1034%3AqNzADGUnCOBOMmju9xMN2zWRoKk&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://capture.py:1034&lt;/A&gt;&lt;BR /&gt;Enable text capturing of writes to file descriptors ``1`` and ``2``.&lt;/P&gt;&lt;P&gt;capfdbinary -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://capture.py:1062" href="http://disq.us/url?url=http%3A%2F%2Fcapture.py%3A1062%3AW_Nw0B8Z3GOGFUdj0MAc9USOXmo&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://capture.py:1062&lt;/A&gt;&lt;BR /&gt;Enable bytes capturing of writes to file descriptors ``1`` and ``2``.&lt;/P&gt;&lt;P&gt;capsys -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://capture.py:978" href="http://disq.us/url?url=http%3A%2F%2Fcapture.py%3A978%3AlbLlbG5Sh0tyVLGABm-llCvfHBQ&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://capture.py:978&lt;/A&gt;&lt;BR /&gt;Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.&lt;/P&gt;&lt;P&gt;doctest_namespace [session scope] -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://doctest.py:741" href="http://disq.us/url?url=http%3A%2F%2Fdoctest.py%3A741%3ADdUoN-kwB3bfrTRLE10HQvFB60Y&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://doctest.py:741&lt;/A&gt;&lt;BR /&gt;Fixture that returns a :py:class:`dict` that will be injected into the&lt;BR /&gt;namespace of doctests.&lt;/P&gt;&lt;P&gt;pytestconfig [session scope] -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://fixtures.py:1345" href="http://disq.us/url?url=http%3A%2F%2Ffixtures.py%3A1345%3AMyHP8WTMikibScUZJdDr5SZAUXo&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://fixtures.py:1345&lt;/A&gt;&lt;BR /&gt;Session-scoped fixture that returns the session's :class:`pytest.Config`&lt;BR /&gt;object.&lt;/P&gt;&lt;P&gt;record_property -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://junitxml.py:280" href="http://disq.us/url?url=http%3A%2F%2Fjunitxml.py%3A280%3AZSSKkBqu2rXmrO6bq_RMgmBNaDc&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://junitxml.py:280&lt;/A&gt;&lt;BR /&gt;Add extra properties to the calling test.&lt;/P&gt;&lt;P&gt;record_xml_attribute -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://junitxml.py:303" href="http://disq.us/url?url=http%3A%2F%2Fjunitxml.py%3A303%3AWZUSrelfkOYlZ9f8PK3OriSWscU&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://junitxml.py:303&lt;/A&gt;&lt;BR /&gt;Add extra xml attributes to the tag for the calling test.&lt;/P&gt;&lt;P&gt;record_testsuite_property [session scope] -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://junitxml.py:341" href="http://disq.us/url?url=http%3A%2F%2Fjunitxml.py%3A341%3AtiHIZwvOoUR06NpCgL2Ggo8If30&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://junitxml.py:341&lt;/A&gt;&lt;BR /&gt;Record a new ``&amp;lt;property&amp;gt;`` tag as child of the root ``&amp;lt;testsuite&amp;gt;``.&lt;/P&gt;&lt;P&gt;tmpdir_factory [session scope] -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://legacypath.py:298" href="http://disq.us/url?url=http%3A%2F%2Flegacypath.py%3A298%3AMIfYfDQ_nKAUq_0ccnMNvXG6NKw&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://legacypath.py:298&lt;/A&gt;&lt;BR /&gt;Return a :class:`pytest.TempdirFactory` instance for the test session.&lt;/P&gt;&lt;P&gt;tmpdir -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://legacypath.py:305" href="http://disq.us/url?url=http%3A%2F%2Flegacypath.py%3A305%3A4tB3boR8ixVjmQecjDncFW5I1xM&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://legacypath.py:305&lt;/A&gt;&lt;BR /&gt;Return a temporary directory path object which is unique to each test&lt;BR /&gt;function invocation, created as a sub directory of the base temporary&lt;BR /&gt;directory.&lt;/P&gt;&lt;P&gt;caplog -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://logging.py:598" href="http://disq.us/url?url=http%3A%2F%2Flogging.py%3A598%3A9pb7U9WtM4LLhUxffL4I1fQ5Zes&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://logging.py:598&lt;/A&gt;&lt;BR /&gt;Access and control log capturing.&lt;/P&gt;&lt;P&gt;monkeypatch -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://monkeypatch.py:31" href="http://disq.us/url?url=http%3A%2F%2Fmonkeypatch.py%3A31%3AKrUYfo1KPW84sN8Ddcg8Axy0olE&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://monkeypatch.py:31&lt;/A&gt;&lt;BR /&gt;A convenient fixture for monkey-patching.&lt;/P&gt;&lt;P&gt;recwarn -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://recwarn.py:35" href="http://disq.us/url?url=http%3A%2F%2Frecwarn.py%3A35%3ADNcCxaArUcLBWQ71g-w-HUOGtqY&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://recwarn.py:35&lt;/A&gt;&lt;BR /&gt;Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.&lt;/P&gt;&lt;P&gt;tmp_path_factory [session scope] -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://tmpdir.py:242" href="http://disq.us/url?url=http%3A%2F%2Ftmpdir.py%3A242%3Ayb9FseTaDj4qNxhmcs6SWqH6js0&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://tmpdir.py:242&lt;/A&gt;&lt;BR /&gt;Return a :class:`pytest.TempPathFactory` instance for the test session.&lt;/P&gt;&lt;P&gt;tmp_path -- .../_pytest/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://tmpdir.py:257" href="http://disq.us/url?url=http%3A%2F%2Ftmpdir.py%3A257%3ATAiKIuRU6i_xUlt-tUQ2K0B1mrg&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://tmpdir.py:257&lt;/A&gt;&lt;BR /&gt;Return a temporary directory path object which is unique to each test&lt;BR /&gt;function invocation, created as a sub directory of the base temporary&lt;BR /&gt;directory.&lt;/P&gt;&lt;P&gt;------------------ fixtures defined from anyio.pytest_plugin -------------------&lt;BR /&gt;anyio_backend -- ../python/lib/python3.10/site-packages/anyio/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://pytest_plugin.py:135" href="http://disq.us/url?url=http%3A%2F%2Fpytest_plugin.py%3A135%3AdCSamCJ3t_F2IoZSTk_jQ-QvWgY&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://pytest_plugin.py:135&lt;/A&gt;&lt;BR /&gt;no docstring available&lt;/P&gt;&lt;P&gt;anyio_backend_name -- ../python/lib/python3.10/site-packages/anyio/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://pytest_plugin.py:140" href="http://disq.us/url?url=http%3A%2F%2Fpytest_plugin.py%3A140%3AJjrytkC64IEXmqjWrjb2ZG3ou3c&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://pytest_plugin.py:140&lt;/A&gt;&lt;BR /&gt;no docstring available&lt;/P&gt;&lt;P&gt;anyio_backend_options -- ../python/lib/python3.10/site-packages/anyio/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://pytest_plugin.py:148" href="http://disq.us/url?url=http%3A%2F%2Fpytest_plugin.py%3A148%3AjlYh3nURqWkziIdr_BNxx89mMuE&amp;amp;cuid=5978192" rel="nofollow noopener" target="_blank"&gt;http://pytest_plugin.py:148&lt;/A&gt;&lt;BR /&gt;no docstring available&lt;/P&gt;&lt;P&gt;============================ no tests ran in 0.01s =============================&lt;/P&gt;&lt;P&gt;However, these tests work perfectly fine locally. I would really appreciate your support.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:53:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-unit-tests-from-a-different-notebook-using-python/m-p/90592#M37960</guid>
      <dc:creator>SpaceDC</dc:creator>
      <dc:date>2024-09-16T15:53:09Z</dc:date>
    </item>
  </channel>
</rss>

