from src.workflow_events import generate_transaction
from .fixtures import *

# XXX: How do we test when timestamps and uuids change? freezegun?
# XXX: We also need to prevent requests from happening
@pytest.mark.skip("This test is not yet useful")
def test_generate_transaction(completed_workflow, generated_transaction):
    assert generate_transaction(completed_workflow["workflow_job"]) == (
        generated_transaction
    )


def test_workflow_without_steps(completed_workflow):
    completed_workflow["workflow_job"]["steps"] = []
    assert generate_transaction(completed_workflow["workflow_job"]) == None

1d9cfdc27a551f8b58ca5fc788fe328738c09324
<mask token>

<mask token>


def test_workflow_without_steps(completed_workflow):
    completed_workflow['workflow_job']['steps'] = []
    assert generate_transaction(completed_workflow['workflow_job']) == None

<mask token>


@pytest.mark.skip('This test is not yet useful')
def test_generate_transaction(completed_workflow, generated_transaction):
    assert generate_transaction(completed_workflow['workflow_job']
        ) == generated_transaction


def test_workflow_without_steps(completed_workflow):
    completed_workflow['workflow_job']['steps'] = []
    assert generate_transaction(completed_workflow['workflow_job']) == None

from src.workflow_events import generate_transaction
from .fixtures import *


@pytest.mark.skip('This test is not yet useful')
def test_generate_transaction(completed_workflow, generated_transaction):
    assert generate_transaction(completed_workflow['workflow_job']
        ) == generated_transaction


def test_workflow_without_steps(completed_workflow):
    completed_workflow['workflow_job']['steps'] = []
    assert generate_transaction(completed_workflow['workflow_job']) == None

from src.workflow_events import generate_transaction
from .fixtures import *

# XXX: How do we test when timestamps and uuids change? freezegun?
# XXX: We also need to prevent requests from happening
@pytest.mark.skip("This test is not yet useful")
def test_generate_transaction(completed_workflow, generated_transaction):
    assert generate_transaction(completed_workflow["workflow_job"]) == (
        generated_transaction
    )


def test_workflow_without_steps(completed_workflow):
    completed_workflow["workflow_job"]["steps"] = []
    assert generate_transaction(completed_workflow["workflow_job"]) == None
