Skip to content

Commit

Permalink
adding a draft of a smoke test; fix var name in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Feb 13, 2024
1 parent ae3824e commit 6607c28
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/PySDM_examples/deJong_Azimi/box.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
" cloudy_data_0d.MOM_data['Golovin']['aDists'][j][0],\n",
" cloudy_data_0d.MOM_data['Golovin']['aDists'][j][1],\n",
" cloudy_data_0d.MOM_data['Golovin']['aDists'][j][2]\n",
" ) * 3 * m_plt**2 * si.ug / si.cm**3\n",
" ) * 3 * m_plt_ug**2 * si.ug / si.cm**3\n",
" ax.plot(\n",
" in_unit(r_plt, si.um),\n",
" in_unit(a_dmdlnr, si.kg / si.m**3),\n",
Expand Down
31 changes: 31 additions & 0 deletions tests/smoke_tests/box/dejong_azimi/test_box.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
""" regression tests asserting on values from the plots """

from pathlib import Path

import pytest

from PySDM_examples.utils import notebook_vars
from PySDM_examples import deJong_Azimi

from PySDM.physics import si

PLOT = False


@pytest.fixture(scope="session", name="variables")
def variables_fixture():
return notebook_vars(
file=Path(deJong_Azimi.__file__).parent / "box.ipynb", plot=PLOT
)


def test_settings_a(variables):
pass


def test_settings_b(variables):
pass


def test_settings_c(variables):
pass

0 comments on commit 6607c28

Please sign in to comment.