Beispiel #1
0
def test_changelog_last_serial(db_request):
    projects = [ProjectFactory.create() for _ in range(10)]
    entries = []
    for project in projects:
        for _ in range(10):
            entries.append(JournalEntryFactory.create(name=project.name))

    expected = max(e.id for e in entries)

    assert xmlrpc.changelog_last_serial(db_request) == expected
Beispiel #2
0
def test_changelog_last_serial(db_request):
    projects = [ProjectFactory.create() for _ in range(10)]
    entries = []
    for project in projects:
        for _ in range(10):
            entries.append(JournalEntryFactory.create(name=project.name))

    expected = max(e.id for e in entries)

    assert xmlrpc.changelog_last_serial(db_request) == expected
Beispiel #3
0
def test_changelog_last_serial_none(db_request):
    assert xmlrpc.changelog_last_serial(db_request) is None
Beispiel #4
0
def test_changelog_last_serial_none(db_request):
    assert xmlrpc.changelog_last_serial(db_request) is None