Skip to content

Commit

Permalink
EO3 tests should clean-up previous test db
Browse files Browse the repository at this point in the history
And don't forever-cache something we need to be reliably accurate to the
underlying DB. It's premature optimisation anyway.
  • Loading branch information
jeremyh committed Oct 13, 2021
1 parent 4371873 commit 7a3fb4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions cubedash/summary/_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from dataclasses import dataclass
from datetime import date, datetime, timedelta
from enum import Enum, auto
from functools import cached_property
from itertools import groupby
from typing import (
Dict,
Expand Down Expand Up @@ -301,7 +300,6 @@ def init(self, grouping_epsg_code: int = None):
def create(cls, index: Index, log=_LOG) -> "SummaryStore":
return cls(index, Summariser(_utils.alchemy_engine(index)), log=log)

@cached_property
def grouping_crs(self):
"""
Get the crs name used for grouping summaries.
Expand Down
4 changes: 3 additions & 1 deletion integration_tests/test_eo3_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def eo3_index(module_dea_index: Index, dataset_loader):
assert loaded == 1

# We need postgis and some support tables (eg. srid lookup).
SummaryStore.create(module_dea_index).init()
store = SummaryStore.create(module_dea_index)
store.drop_all()
store.init()

return module_dea_index

Expand Down

0 comments on commit 7a3fb4e

Please sign in to comment.