Skip to content

Commit

Permalink
More renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
h-0-0 committed Dec 2, 2023
1 parent 22ca289 commit 575d58e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_searchers_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_runs_zero(self):
searcher.next_tune()

def test_check_existing_runs(self):
# Test that check_existing_runs correctly sets the slog_exists attribute
# Test that check_existing_runs correctly sets the saver_exists attribute

# Create an instance of SearcherGrid with sample hyperparameters
hyperparameters = {
Expand All @@ -144,12 +144,12 @@ def test_check_existing_runs(self):
}
searcher = SearcherGrid(hyperparameters, runs=1)

# Check that slog_exists is None before calling check_existing_runs
self.assertIsNone(searcher.slog_exists)
# Check that saver_exists is None before calling check_existing_runs
self.assertIsNone(searcher.saver_exists)

# Check that slog_exists is set to a function after calling check_existing_runs
# Check that saver_exists is set to a function after calling check_existing_runs
searcher.check_existing_runs(MockSaver(MockLogger()))
self.assertTrue(callable(searcher.slog_exists))
self.assertTrue(callable(searcher.saver_exists))

def test_skip_existing_runs_positive(self):
# Test that skip_existing_runs correctly skips existing runs
Expand Down

0 comments on commit 575d58e

Please sign in to comment.