Skip to content

Commit f9e5d1f

Browse files
committed
Remove some defunct outdated tests.
1 parent 74289d8 commit f9e5d1f

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

test/rmgpy/yaml_cantera1Test.py

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -551,16 +551,6 @@ def test_can_instantiate(self):
551551
writer = CanteraWriter1()
552552
assert writer is not None
553553

554-
@pytest.mark.skip(reason="These files are out of date and have been removed.")
555-
class TestPreviouslyWrittenCanteraYamlGasOnly(CanteraYamlFileComparer):
556-
"""Tests for comparing previously written Cantera YAML files, gas-only mechanism.
557-
558-
These are stored in the testing data directory.
559-
"""
560-
test_data_folder='test/rmgpy/test_data/yaml_writer_data/'
561-
# generated on the fly in recent functional test
562-
yaml_path_1 = os.path.join(test_data_folder, 'chemkin/chem37.yaml')
563-
yaml_path_2 = os.path.join(test_data_folder, 'cantera1/chem37.yaml')
564554

565555
class TestRecentlyGeneratedCanteraYaml1GasOnly(CanteraYamlFileComparer):
566556
"""Tests for comparing recently generated Cantera YAML files, gas-only mechanism.
@@ -598,13 +588,16 @@ def find_recent_files(self, request):
598588
request.cls.yaml_path_1 = chemkin_file
599589
request.cls.yaml_path_2 = cantera_file
600590

601-
@pytest.mark.skip(reason="These files are out of date and have been removed.")
602-
class TestPreviouslyWrittenCanteraYamlWithSurface(CanteraYamlFileComparer):
603-
"""Tests for comparing previously written Cantera YAML files, with surface mechanism.
604-
605-
These are stored in the testing data directory.
606-
"""
607-
test_data_folder='test/rmgpy/test_data/yaml_writer_data/'
608-
# saved by Prosper in earlier commit
609-
yaml_path_1 = os.path.join(test_data_folder, 'chemkin/chem0047-gas.yaml')
610-
yaml_path_2 = os.path.join(test_data_folder, 'cantera1/chem47.yaml')
591+
# This is kept here as an example of how to write a test comparing previously generated YAML files,
592+
# but the files themselves are now out of date and have been removed,
593+
# so the test is skipped and the class is commented out to avoid confusion.
594+
# @pytest.mark.skip(reason="These files are out of date and have been removed.")
595+
# class TestPreviouslyWrittenCanteraYamlWithSurface(CanteraYamlFileComparer):
596+
# """Tests for comparing previously written Cantera YAML files.
597+
598+
# These are stored in the testing data directory.
599+
# """
600+
# test_data_folder='test/rmgpy/test_data/yaml_writer_data/'
601+
# # saved by Prosper in earlier commit
602+
# yaml_path_1 = os.path.join(test_data_folder, 'chemkin/chem1.yaml')
603+
# yaml_path_2 = os.path.join(test_data_folder, 'cantera1/chem1.yaml')

0 commit comments

Comments
 (0)