Skip to content

Commit

Permalink
fix test_opencsp_root_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bbean23 committed Aug 10, 2024
1 parent 8194ea6 commit e9f821a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_opencsp_doc_dir(self):

def test_opencsp_example_dir(self):
"""Just test that the opencsp_example_dir() method works. TODO actually test the returned value."""
self.assertIn("example", orp.opencsp_data_example_dir())
self.assertIn("example", orp.opencsp_example_dir())

def test_opencsp_scratch_dir(self):
"""Just test that the opencsp_scratch_dir() method works. TODO actually test the returned value."""
Expand All @@ -69,10 +69,6 @@ def test_opencsp_temporary_dir(self):
"""Just test that the opencsp_temporary_dir() method works. TODO actually test the returned value."""
self.assertTrue(("temp" in orp.opencsp_temporary_dir()) or ("tmp" in orp.opencsp_temporary_dir()))

def test__opencsp_settings_dirs(self):
"""Just test that the _opencsp_settings_dirs() method works. TODO actually test the returned value."""
orp._opencsp_settings_dirs()

@unittest.skip("Can't get this test to work. Maybe someone smarter than me can make it work? :(")
@unittest.mock.patch.dict(os.environ, {"OPENCSP_SETTINGS_DIRS": "~/.opencsp/"})
def test_settings_file(self):
Expand Down

0 comments on commit e9f821a

Please sign in to comment.