1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-29 14:59:55 +00:00
bramw_baserow/backend/tests/baserow/contrib/automation/test_automation_handler.py
2025-04-17 17:01:26 +04:00

16 lines
524 B
Python

import pytest
from baserow.contrib.automation.handler import AutomationHandler
from baserow.core.exceptions import ApplicationDoesNotExist
@pytest.mark.django_db
def test_get_automation(data_fixture):
automation = data_fixture.create_automation_application()
assert AutomationHandler().get_automation(automation.id).id == automation.id
@pytest.mark.django_db
def test_get_automation_does_not_exist(data_fixture):
with pytest.raises(ApplicationDoesNotExist):
AutomationHandler().get_automation(9999)