Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nowcasting_datamodel/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def make_partitions(self):
):
partition.__table__.create(bind=self.engine)

def drop_all(self):
def __drop_all(self):
"""Drop all partitions and tables"""
# drop partitions
for partition in self.partitions:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def forecasts_all(db_session) -> List[ForecastSQL]:

@pytest.fixture
def db_connection():
url = os.getenv("DB_URL", "sqlite:///test.db")
url = "sqlite:///test.db"

connection = DatabaseConnection(url=url, echo=False)
connection.create_all()
Expand Down Expand Up @@ -80,7 +80,7 @@ def db_session(db_connection):

@pytest.fixture
def db_connection_pv():
url = os.getenv("DB_URL_PV", "sqlite:///test_pv.db")
url = "sqlite:///test_pv.db"

connection = DatabaseConnection(url=url, base=Base_PV)
Base_PV.metadata.create_all(connection.engine)
Expand Down