Exemplo n.º 1
0
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'])
Exemplo n.º 2
0
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'])
Exemplo n.º 3
0
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'])
Exemplo n.º 4
0
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'])