File tree Expand file tree Collapse file tree 6 files changed +96
-0
lines changed Expand file tree Collapse file tree 6 files changed +96
-0
lines changed Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch03NiModelling"
11+ + "/solutions/diffpy-cmi/fitBulkNi.py" ,
12+ f"{ __examples_dir__ } /ch03NiModelling"
13+ + "/solutions/diffpy-cmi/fitNPPt.py" ,
14+ ],
15+ )
16+ def test_ch03_examples (relative_path ):
17+ script_path = Path (__file__ ).parent .parent / relative_path
18+ run_cmi_script (script_path )
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch05Fit2Phase/solutions/diffpy-cmi/fit2P.py" ,
11+ ],
12+ )
13+ def test_ch05_examples (relative_path ):
14+ script_path = Path (__file__ ).parent .parent / relative_path
15+ run_cmi_script (script_path )
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch06RefineCrystalStructureGen"
11+ + "/solutions/diffpy-cmi/fitCrystalGen.py" ,
12+ ],
13+ )
14+ def test_ch06_examples (relative_path ):
15+ script_path = Path (__file__ ).parent .parent / relative_path
16+ run_cmi_script (script_path )
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch07StructuralPhaseTransitions"
11+ + "/solutions/diffpy-cmi/fitTSeries.py" ,
12+ ],
13+ )
14+ def test_ch07_examples (relative_path ):
15+ script_path = Path (__file__ ).parent .parent / relative_path
16+ run_cmi_script (script_path )
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch08NPRefinement"
11+ + "/solutions/diffpy-cmi/fitCdSeNP.py" ,
12+ ],
13+ )
14+ def test_ch08_examples (relative_path ):
15+ script_path = Path (__file__ ).parent .parent / relative_path
16+ run_cmi_script (script_path )
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+ import pytest
4+ from conftest import __examples_dir__ , run_cmi_script
5+
6+
7+ @pytest .mark .parametrize (
8+ "relative_path" ,
9+ [
10+ f"{ __examples_dir__ } /ch11ClusterXYZ/solutions/diffpy-cmi/fitCdSeNP.py" ,
11+ ],
12+ )
13+ def test_ch11_examples (relative_path ):
14+ script_path = Path (__file__ ).parent .parent / relative_path
15+ run_cmi_script (script_path )
You can’t perform that action at this time.
0 commit comments