Skip to content

Commit 6af651d

Browse files
committed
Remove outdated test
1 parent 11f23f4 commit 6af651d

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

tests/test_dryrun.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -366,35 +366,3 @@ def test_cache_disabled_behavior(self, mock_metadata, tmp_query_path):
366366

367367
# Save to cache should do nothing when disabled
368368
dry_run._save_to_cache("test_key", {"test": "data"}) # Should not raise error
369-
370-
@patch("bigquery_etl.dryrun.getmtime")
371-
def test_cache_key_includes_file_modification_time(
372-
self, mock_getmtime, tmp_query_path
373-
):
374-
"""Test that cache key includes file modification time."""
375-
query_file = tmp_query_path / "query.sql"
376-
query_file.write_text("SELECT 123")
377-
378-
# Create metadata.yaml to avoid FileNotFoundError
379-
metadata_file = tmp_query_path / "metadata.yaml"
380-
metadata_file.write_text(
381-
"""friendly_name: Test Table
382-
description: Test description
383-
owners:
384-
385-
"""
386-
)
387-
388-
dry_run = DryRun(str(query_file), cache_enabled=True, cache_ttl_hours=1)
389-
390-
sql = "SELECT 123"
391-
392-
# Test with different modification times
393-
mock_getmtime.return_value = 1000000
394-
cache_key1 = dry_run._get_cache_key(sql)
395-
396-
mock_getmtime.return_value = 2000000
397-
cache_key2 = dry_run._get_cache_key(sql)
398-
399-
# Different modification times should produce different cache keys
400-
assert cache_key1 != cache_key2

0 commit comments

Comments
 (0)