Skip to content

Commit

Permalink
Apply Black code style to tests (#16)
Browse files Browse the repository at this point in the history
Apply the Black code style to the notebook tests

c.f. https://github.com/ambv/black
  • Loading branch information
matthewfeickert authored May 21, 2019
1 parent 146c42d commit 51295b3
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,30 @@ def test_notebooks_all_execute(tmpdir):
outputnb = tmpdir.join('output.ipynb')
common_kwargs = {
'output_path': str(outputnb),
'kernel_name': 'python{}'.format(sys.version_info.major)
'kernel_name': 'python{}'.format(sys.version_info.major),
}

pm.execute_notebook(
'Notebooks/Introductory/Chi-Squared-Distribution.ipynb', **common_kwargs)
'Notebooks/Introductory/Chi-Squared-Distribution.ipynb', **common_kwargs
)
pm.execute_notebook('Notebooks/Introductory/Error-on-means.ipynb', **common_kwargs)
pm.execute_notebook(
'Notebooks/Introductory/Error-on-means.ipynb', **common_kwargs)
'Notebooks/Introductory/Gaussian-Distribution.ipynb', **common_kwargs
)
pm.execute_notebook(
'Notebooks/Introductory/Gaussian-Distribution.ipynb', **common_kwargs)
'Notebooks/Introductory/Gaussian-Sampling.ipynb', **common_kwargs
)
pm.execute_notebook(
'Notebooks/Introductory/Gaussian-Sampling.ipynb', **common_kwargs)
'Notebooks/Introductory/Likelihood-Function.ipynb', **common_kwargs
)
pm.execute_notebook(
'Notebooks/Introductory/Likelihood-Function.ipynb', **common_kwargs)
pm.execute_notebook(
'Notebooks/Introductory/probability-integral-transform.ipynb', **common_kwargs)
'Notebooks/Introductory/probability-integral-transform.ipynb', **common_kwargs
)

pm.execute_notebook(
'Notebooks/Likelihood_Methods/Extended-Likelihood.ipynb', **common_kwargs)
'Notebooks/Likelihood_Methods/Extended-Likelihood.ipynb', **common_kwargs
)

pm.execute_notebook(
'Notebooks/Sampling/Rejection-Sampling-MC.ipynb', **common_kwargs)
'Notebooks/Sampling/Rejection-Sampling-MC.ipynb', **common_kwargs
)

0 comments on commit 51295b3

Please sign in to comment.