2022-10-12 14:22:22 +00:00
|
|
|
"""Test_acceptance_test_fixtures."""
|
|
|
|
from flask.app import Flask
|
2022-10-31 13:28:03 +00:00
|
|
|
|
2022-10-12 19:28:52 +00:00
|
|
|
from spiffworkflow_backend.services.acceptance_test_fixtures import (
|
|
|
|
load_acceptance_test_fixtures,
|
|
|
|
)
|
2022-10-12 14:22:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_start_dates_are_one_hour_apart(app: Flask) -> None:
|
|
|
|
"""Test_start_dates_are_one_hour_apart."""
|
2022-10-12 19:28:52 +00:00
|
|
|
process_instances = load_acceptance_test_fixtures()
|
2022-10-12 14:22:22 +00:00
|
|
|
|
|
|
|
assert len(process_instances) > 2
|
|
|
|
assert process_instances[0].start_in_seconds is not None
|
|
|
|
assert process_instances[1].start_in_seconds is not None
|
|
|
|
assert (process_instances[0].start_in_seconds - 3600) == (
|
|
|
|
process_instances[1].start_in_seconds
|
|
|
|
)
|