Skip to content

Commit

Permalink
add and remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Jan 11, 2024
1 parent 0a5d460 commit 1465efb
Showing 1 changed file with 16 additions and 62 deletions.
78 changes: 16 additions & 62 deletions autotest/test_03_practical_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def test_wms_plot():
fpath_rel = ["01_GIS", "02_plot_wms_data", "wms_plot.ipynb"]
fname = os.path.join(nb_dir, *fpath_rel)
tf.run_notebook(fname, clearoutput=False)
return 0


def test_geboortes_nl():
Expand All @@ -41,73 +40,28 @@ def test_congress_twitter_analysis():
tf.run_notebook(fname, clearoutput=False)


# def test_00___Introduction_and_Setup():
# fpath_rel = ['03_bokeh', '00 - Introduction and Setup.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)


# def test_01___Basic_Plotting():
# fpath_rel = ['03_bokeh', '01 - Basic Plotting.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)


# def test_02___Styling_and_Theming():
# fpath_rel = ['03_bokeh', '02 - Styling and Theming.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)


# # # Does not work, test disabled. Needs fixing.
# # def test_03___Data_Sources_and_Transformations():
# # fpath_rel = ['03_bokeh', '03 - Data Sources and Transformations.ipynb']
# # fname = os.path.join(nb_dir, *fpath_rel)
# # tf.run_notebook(fname, clearoutput=False)


# # # Does not work, test disabled. Needs fixing.
# def test_04___Adding_Annotations():
# fpath_rel = ['03_bokeh', '04 - Adding Annotations.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)


# # Does not work, test disabled. Needs fixing.
# def test_05___Presentation_Layouts():
# fpath_rel = ['03_bokeh', '05 - Presentation Layouts.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)


# # Does not work, test disabled. Needs fixing.
# def test_06___Linking_and_Interactions():
# fpath_rel = ['03_bokeh', '06 - Linking and Interactions.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)
def test_00___Introduction_and_Setup():
fpath_rel = ["03_bokeh", "00 - Introduction and Setup.ipynb"]
fname = os.path.join(nb_dir, *fpath_rel)
tf.run_notebook(fname, clearoutput=False)


# # Does not work, test disabled. Needs fixing.
# def test_07___Bar_and_Categorical_Data_Plots():
# fpath_rel = ['03_bokeh', '07 - Bar and Categorical Data Plots.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# print('which file is tested here?')
# print(fname)
# tf.run_notebook(fname, clearoutput=False)
def test_01___Basic_Plotting():
fpath_rel = ["03_bokeh", "01 - Basic Plotting.ipynb"]
fname = os.path.join(nb_dir, *fpath_rel)
tf.run_notebook(fname, clearoutput=False)


# # Does not work, test disabled. Needs fixing.
# def test_08___Graph_and_Network_Plots():
# fpath_rel = ['03_bokeh', '08 - Graph and Network Plots.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)
def test_02___Styling_and_Theming():
fpath_rel = ["03_bokeh", "02 - Styling and Theming.ipynb"]
fname = os.path.join(nb_dir, *fpath_rel)
tf.run_notebook(fname, clearoutput=False)


# # Does not work, test disabled. Needs fixing.
# def test_11___Running_Bokeh_Applications():
# fpath_rel = ['03_bokeh', '11 - Running Bokeh Applications.ipynb']
# fname = os.path.join(nb_dir, *fpath_rel)
# tf.run_notebook(fname, clearoutput=False)
def test_03___Data_Sources_and_Transformations():
fpath_rel = ["03_bokeh", "03 - Data Sources and Transformations.ipynb"]
fname = os.path.join(nb_dir, *fpath_rel)
tf.run_notebook(fname, clearoutput=False)


def test_Folium02_CheckZorder():
Expand Down

0 comments on commit 1465efb

Please sign in to comment.