Skip to content

Commit

Permalink
clean project ahead of each test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Nov 14, 2024
1 parent a10a445 commit 0009ba4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,8 @@ def _clear_message_bar_messages(qgis_iface: QgisInterface):
mb.messages[Qgis.MessageLevel.Warning] = []
mb.messages[Qgis.MessageLevel.Critical] = []
mb.messages[Qgis.MessageLevel.Success] = []


@pytest.fixture(autouse=True, scope="function")
def _clean_project(qgis_iface: QgisInterface) -> None:
qgis_iface.newProject()

0 comments on commit 0009ba4

Please sign in to comment.