def test_insert_raw_deployment_dup_tag(session, tag_1): d = insert_raw_deployment(session, 'joe', 'newmodule', ['tag1', 'tag2'], datetime.now()) assert d.author.name == 'joe' assert set([x.value for x in d.tags]) == set(['tag1', 'tag2'])
def test_insert_raw_deployment_dup_tag(session, tag_1): d = insert_raw_deployment(session, 'joe', 'newmodule', ['tag1', 'tag2'], datetime.utcnow()) assert d.author.name == 'joe' assert set([x.value for x in d.tags]) == set(['tag1', 'tag2'])
def test_insert_raw_deployment(session): now = datetime.now() d = insert_raw_deployment(session, 'joe', 'newmodule', ['tag1', 'tag2'], now) assert d.author.name == 'joe' assert set([x.value for x in d.tags]) == set(['tag1', 'tag2'])