Skip to content
Snippets Groups Projects
Commit c8a44184 authored by vuillaut's avatar vuillaut
Browse files

sleep before testing if the request is pending

parent a763f11c
No related branches found
No related tags found
1 merge request!116sleep before testing if the request is pending
Pipeline #151607 failed
......@@ -6,6 +6,7 @@ import unittest
import requests
import pytest
import tempfile
import time
from pathlib import Path
from eossr import ROOT_DIR
from eossr.api.zenodo import ZenodoAPI, get_zenodo_records, get_record, Record
......@@ -137,6 +138,7 @@ class TestZenodoAPIToken(unittest.TestCase):
## Add to escape2020 community and test request
meta = {'communities': [{'identifier': escape_community}]}
zk.update_record_metadata(record_id, meta)
time.sleep(1)
records = self.zenodo.get_community_pending_requests(escape_community)
assert record_id in [rec.id for rec in records]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment