summaryrefslogtreecommitdiffstats
path: root/python/tests/import_journal_metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/import_journal_metadata.py')
-rw-r--r--python/tests/import_journal_metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/tests/import_journal_metadata.py b/python/tests/import_journal_metadata.py
index 0263f706..1663da05 100644
--- a/python/tests/import_journal_metadata.py
+++ b/python/tests/import_journal_metadata.py
@@ -14,14 +14,14 @@ def test_journal_metadata_importer_batch(journal_metadata_importer):
CsvPusher(journal_metadata_importer, f).run()
def test_journal_metadata_importer(journal_metadata_importer):
+ last_index = journal_metadata_importer.api.get_changelog(limit=1)[0].index
with open('tests/files/journal_extra_metadata.snip.csv', 'r') as f:
journal_metadata_importer.bezerk_mode = True
- journal_metadata_importer.serial_mode = True
CsvPusher(journal_metadata_importer, f).run()
# fetch most recent editgroup
- changes = journal_metadata_importer.api.get_changelog(limit=1)
- eg = changes[0].editgroup
+ change = journal_metadata_importer.api.get_changelog_entry(index=last_index+1)
+ eg = change.editgroup
assert eg.description
assert "container" in eg.description.lower()
assert eg.extra['git_rev']