mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
add verification change to test_resume_job
This commit is contained in:
parent
36e323c942
commit
378c097c29
@ -18,15 +18,15 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import brozzler
|
|
||||||
import logging
|
|
||||||
import argparse
|
import argparse
|
||||||
import doublethink
|
|
||||||
import time
|
|
||||||
import datetime
|
import datetime
|
||||||
import uuid
|
import logging
|
||||||
|
|
||||||
|
import doublethink
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
import brozzler
|
||||||
|
|
||||||
args = argparse.Namespace()
|
args = argparse.Namespace()
|
||||||
args.log_level = logging.INFO
|
args.log_level = logging.INFO
|
||||||
brozzler.cli.configure_logging(args)
|
brozzler.cli.configure_logging(args)
|
||||||
@ -215,6 +215,7 @@ def test_resume_job():
|
|||||||
site = list(frontier.job_sites(job.id))[0]
|
site = list(frontier.job_sites(job.id))[0]
|
||||||
|
|
||||||
assert job.status == 'ACTIVE'
|
assert job.status == 'ACTIVE'
|
||||||
|
assert job.stop_requested is None
|
||||||
assert len(job.starts_and_stops) == 3
|
assert len(job.starts_and_stops) == 3
|
||||||
assert job.starts_and_stops[2]['start']
|
assert job.starts_and_stops[2]['start']
|
||||||
assert job.starts_and_stops[2]['stop'] is None
|
assert job.starts_and_stops[2]['stop'] is None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user