Skip to content

Commit

Permalink
test(jobstorage): Set end_time for Windows like in 833e354
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 20, 2024
1 parent aaa02e1 commit e08a9ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_jobstorage.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import datetime

from zope.interface.verify import verifyObject

from scrapyd.config import Config
from scrapyd.interfaces import IJobStorage
from scrapyd.jobstorage import Job, MemoryJobStorage, SqliteJobStorage

j1 = Job("p1", "s1")
j2 = Job("p2", "s2")
j3 = Job("p3", "s3")
j1 = Job("p1", "s1", end_time=datetime.datetime(2001, 2, 3, 4, 5, 6, 7))
j2 = Job("p2", "s2", end_time=datetime.datetime(2001, 2, 3, 4, 5, 6, 8))
j3 = Job("p3", "s3", end_time=datetime.datetime(2001, 2, 3, 4, 5, 6, 9))


def pytest_generate_tests(metafunc):
Expand Down

0 comments on commit e08a9ba

Please sign in to comment.